且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从应用程序注销后,浏览器prevent后退选项

更新时间:2022-11-06 17:08:13

感谢您为您的所有答复。

Thank You for all your replies.

code:

  Response.Cache.SetCacheability(HttpCacheability.NoCache);
  Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
  Response.Cache.SetNoStore();
  Response.AppendHeader("Pragma", "no-cache");

我已经使用页面加载事件此code。其工作罚款。

i have used this code in page load event. Its working fine.