我在Web窗体中用了Response.Write("<script>window.showModalDialog ('Dlg.aspx');</script>");弹出一个模式对话框,想在对话框中输入数据后按确定按钮关闭对话框,想请问这个确定响应函数怎么写,即怎么关闭模式对话框???谢谢!!
我在Web窗体中用了Response.Write("<script>window.showModalDialog ('Dlg.aspx');</script>");弹出一个模式对话框,想在对话框中输入数据后按确定按钮关闭对话框,想请问这个确定响应函数怎么写,即怎么关闭模式对话框???谢谢!!
你是不是想要这个..弹出页面关闭后刷新本页..
记得给我分哟...
Dlg.aspx页面里面要加上<base target="_self"></base>
{
window.close()
return returnValue="ss";
}
用window.close()不能把模式对话框Dlg.aspx关闭,试过了不行!有没其他办法,我是用window.showModalDialog ('Dlg.aspx')来打开新窗口的,然后怎么关闭啊??
Response.Write("<script>window.close();</script>");
Page.RegisterStartupScript("","<script>window.close();</script>");
我就是这样在'Dlg.aspx'的点击确定按钮的事件函数最后加
Response.Write("<script>window.close();</script>");可是出现的问题是模式对话框Dlg.aspx关闭了,不过又重新弹出另一个Web窗体Dlg.aspx来,再点击一次才把窗体关闭回到原来的父窗口,怎么回事?
加<base target="_self"></base>