S
Sdelphi_fu
Unregistered / Unconfirmed
GUEST, unregistred user!
如题:在弹出的winform 中传五个参数传两个参数如:"OnClick=/"" + "SelectMaterFun" + "(this.id,this.value)/"> ";接收,如: string p_funname = "SelectMaterFun";
string strFun = "<script type=/"text/javascript/">function " + p_funname + "(materid,matername){window.opener.document.form1.HfMaterId.value = materid.substr(2);
";
strFun += "window.opener.document.form1.TBMaterName.value = matername;window.close();}</script>";
Response.Write(strFun);如上传两个参数可以,但是想传多几个参数就不行,请有写过这种代码的大侠帮忙,多谢!
string strFun = "<script type=/"text/javascript/">function " + p_funname + "(materid,matername){window.opener.document.form1.HfMaterId.value = materid.substr(2);
";
strFun += "window.opener.document.form1.TBMaterName.value = matername;window.close();}</script>";
Response.Write(strFun);如上传两个参数可以,但是想传多几个参数就不行,请有写过这种代码的大侠帮忙,多谢!