关于ShowModalDialog数据缓存的清除

有时修改了某些数据,然后通过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;
转载请注明出处[http://samlin.cnblogs.com/

欢迎关注本人公众号:

作者赞赏
原文地址:https://www.cnblogs.com/samlin/p/1177967.html