![]() |
#2
liucunde2008-04-06 22:16
|
1.aspx.cs
……
string str1= "<script language='javascript' defer>ret = window.showModalDialog('2.asp?Action=add',window,'dialogHeight:350px;dialogWidth:600px;center:Yes;Help:No;Resizable:No;Scroll:auto;Status:no;');</script>";
Response.Write(str1);
2.aspx.cs
……
string str = "<script language=javascript>window.dialogArguments.document.location.href='ST_stgl.aspx';window.close();</script>";
Response.Write(str);
为什么从1.asp转到2.aspx后,window.close();不起作用,2.asp不关闭,反而跳了一个新的页面?
新手上路,请各位多指教