我打开一个新选项卡,如下所示:
Response.Write("<script>");
Response.Write("window.open('Signature.aspx','_blank')");
Response.Write("</script>");现在来自Signature.aspx
我想刷新父页面。该怎么做呢?

发布于 2013-11-26 00:43:06
从孩子那里:
window.opener.location.reload();编辑:
如果您想从codebehind...you获得它,需要子页面通过按钮单击或something...so来引起回发,因为您需要将上面的代码行注册为启动脚本
Page.ClientScript.RegisterStartupScript(GetType(), "refresh", "window.opener.location.reload();", true);发布于 2013-11-26 00:43:33
将_Blank更改为_Top,它应该会刷新最外层的页面。
发布于 2013-11-26 00:44:57
尝尝这个,
Response.Write("<script>");
Response.Write("window.open('Signature.aspx','_blank'); window.parent.location.href = window.parent.location;");
Response.Write("</script>");https://stackoverflow.com/questions/20198245
复制相似问题