1、提交完成后不要reload,而是location.href='这个页面的地址'
2、提交完成后后台直接Response.Redirect当前页面。
3、设置网页过期 可以试试在后台page_load里面用下面的代码
2、提交完成后后台直接Response.Redirect当前页面。
3、设置网页过期 可以试试在后台page_load里面用下面的代码
#region 防止浏览器后退提交
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.Expires = 0;
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1);
Response.AddHeader("pragma", "no-cache");
Response.CacheControl = "no-cache";
#endregion
也可以将脚本写在后台,关键问题就是Reload导致,使用window.locantion.href=
window.locantion.href即可
如果是刷新父页面,则增加Opener