62,041
社区成员
发帖
与我相关
我的任务
分享
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";
试试看,提交后网页就过期了,无法通过F5重新提交。
另外还有一个就是你提交成功后,重新respons定位到当前页,页可以防止F5重复提交。