【发布时间】:2013-07-27 11:36:26
【问题描述】:
当客户端单击浏览器后退按钮时,如何阻止我的表单在 asp.net 中重新提交。
【问题讨论】:
-
是的..就像清除 cookie 或 chache.. 但仍然无法正常工作
-
你能告诉我你试过的代码吗?
-
Session.Clear();会话.Abandon(); Session.RemoveAll(); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1)); Response.Cache.SetNoStore();
-
OP 发布了一个有点误导性的问题。它们实际上的意思是“如何在按下浏览器后退按钮时停止重新提交表单”。 stackoverflow.com/questions/2463843/… 的可能重复项