日期:2014-05-17  浏览次数:20419 次

后台调用JS 关模式闭子窗口,刷新页面!!!急!!!
Response.Write("<script>window.opener.location.href=window.opener.location.href;window.close();</script>");

  ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "info", "window.opener.location.href='Profe/Professor/ProDetail.aspx';window.close();", true);


我以上都不行 ! 都会重新打开 一个新的页面! 注意:('Profe/Professor/ProDetail.aspx')是父页面!

------解决方案--------------------
window.parent.close()
window.location.href="Profe/Professor/ProDetail.aspx"

------解决方案--------------------
注意要发能够运行的代码,如果有数据库,包括数据库,别发那种不能运行的