在有表单提交的情况下,即post方式下,如果父窗口在此之前有过提交数据的动作,重新刷新页面则会出现这么个对话筐“不重新发送信息,则无法刷新网页”,解决方法:
解决此问题,应该这样写:
window.location.href=window.location.href;
window.location.reload;
同理,如果是刷新父窗口,应该这样写:
window.opener.location.href=window.opener.location.href;
window.opener.location.reload;
.net 中可以这样写:
this.Response.Redirect(this.Request.Url.ToString());相当与把最后一次post提交重新转向了一下。