关于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;

posted on 2008-09-03 10:20  花易落  阅读(174)  评论(0编辑  收藏  举报

导航