今天在Windows Server 03 + IE6的环境下运行Asp.net程序,发现打开同一个页面时,只有第一次打开时才执行Page_Load事件。添加以下语句,禁止读取缓存就好了。

禁止缓存
//禁止缓存 2012-4-16
//IE
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
//Firefox
Response.Cache.SetNoStore();

 

 

相关文章:

  • 2021-09-14
  • 2021-12-15
  • 2022-01-13
  • 2021-12-06
  • 2021-11-22
  • 2021-06-03
  • 2021-11-30
  • 2021-08-10
猜你喜欢
  • 2021-09-14
  • 2021-11-05
  • 2022-12-23
  • 2021-09-07
  • 2021-07-03
  • 2021-11-29
  • 2022-01-12
相关资源
相似解决方案