首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

靠山调用JS 关模式闭子窗口,刷新页面!

2012-07-03 
后台调用JS关模式闭子窗口,刷新页面!!!急!!!Response.Write(scriptwindow.opener.location.hrefwindow

后台调用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"

[解决办法]
注意要发能够运行的代码,如果有数据库,包括数据库,别发那种不能运行的

热点排行
Bad Request.