在ASP.NET中清空浏览器客户端的缓存
来源:互联网 发布:然则朱文公何以知然 编辑:程序博客网 时间:2024/04/27 15:32
在框架中。左边的按钮控制右边的界面的显示。
当关闭这个框架后,在进来点击左边的某一个按钮,右边的界面没有发生变化.
同上次退出之前点击此按钮出现的界面一样?
现在找到问题所在。--要清空缓存才可以。。。
谁能够说明一下原因?在哪些情况下要手工清除缓存???
原因:
很简单,不要原来页面上的数据(注销,更新...)
方法:
Response.Cache.SetExpires( DateTime.Now.AddSeconds(-1) );
怎样利用asp.net清空IE的缓存?
public static void ClearClientPageCache()
{
Response.Buffer=true;
Response.Expires = 0;
Response.ExpiresAbsolute=DateTime.Now.AddDays(-1);
Response.AddHeader("pragma","no-cache");
Response.AddHeader("cache-control","private");
Response.CacheControl="no-cache";
} <script type="text/javascript"><!--google_ad_client = "pub-1534216445189830";google_alternate_ad_url = "http://www.fish888.com/noad.html";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_type = "text_image";google_ad_channel ="";google_color_border = "FFFFFF";google_color_link = "0000FF";google_color_bg = "FFFFFF";google_color_text = "000000";google_color_url = "008000";//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
- 在ASP.NET中清空浏览器客户端的缓存
- 在ASP.NET中清空浏览器客户端的缓存
- 在ASP.NET中清空浏览器客户端的缓存
- 在ASP.NET中清空浏览器客户端的缓存
- 在ASP.NET中清空浏览器客户端的缓存
- 在ASP.NET中清空浏览器客户端的缓存
- asp.net客户端缓存
- asp.net客户端缓存
- ASP.NET页面在客户端浏览器中显示进度
- asp.net 禁用客户端缓存
- asp.net 客户端缓存(ClientCaching)
- asp.net 禁用客户端缓存
- 对于长时间装载的ASP.NET页面如何在客户端浏览器中显示进度?
- 对于长时间装载的ASP.NET页面如何在客户端浏览器中显示进度?
- 对于长时间装载的ASP.NET页面如何在客户端浏览器中显示进度?
- 对于长时间装载的ASP.NET页面如何在客户端浏览器中显示进度?
- 对于长时间装载的ASP.NET页面如何在客户端浏览器中显示进度?
- 对于长时间装载的ASP.NET页面如何在客户端浏览器中显示进度?
- 3D曲面构造不规则图形
- “祖国,您好!”
- 30岁之前不要在乎的事情
- 视频中人脸监测和跟踪
- 『程序员』 [业内动态]谈谈软件从业学习方向
- 在ASP.NET中清空浏览器客户端的缓存
- 具有真实感的3D图形(上)
- SQL Server 2000安装错误“安装配置服务器失败”解决方法
- 具有真实感的3D图形(下)
- ASP.NET 2.0 缓存和过期、连接池
- ASP.NET 2.0 缓存清除
- 数学图形公式
- VC模拟键盘详解
- ASP.NET内存占用问题