为什么我在关闭网页弹出的子模式对话框后,它自己又自动打开?急啊~~在线等
为什么我在关闭网页弹出的子模式对话框后,它自己又自动打开?
我的代码是这样的Response.Write("<script language='javascript'>opener.location.reload();window.close();</script>"); 这个就是关闭子模式对话框的代码
我哪里写错了吗?
这个是父网页的Page_Load里面的代码
if (Session["ID"] == null)
{
Response.Redirect("../Default.aspx");
}
//string s = "select name as 套题名称 from tb_taoti where teacherid='" + Session["ID"].ToString() + "'";
if(!IsPostBack)
bind();