有时修改了某些数据,然后通过ShowModalDialog来显示,这时通常显示出来的数据还是上一次的数据

        可能ShowModalDialog缓存机制的问题,这时你就需要手动的去清除缓存或者写一些代码……

        HTML方面

        <meta http-equiv="pragram" content="no-cache">

        禁止浏览器从本地缓存中调阅页面。

        网页不保存在缓存中,每次访问都刷新页面。

        <meta http-equiv="cache-control" content="no-cache, must-revalidate">

        同上面意思差不多,必须重新加载页面

        <meta http-equiv="expires" content="0">

        网页在缓存中的过期时间为0,一旦网页过期,必须从服务器上重新订阅。

        .NET方面

        Response.Expires = -1;

相关文章:

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