2011年12月6日

Cache使用,禁用方法c#

摘要: 使用Cache:<%@ OutputCache Duration="15" VaryByPara="None" %>页面使用Cache,Cache的有效期为15 seconds使用代码表示,放在Page_Load里面:////Cache Manager可以控制这个页面//Response.Cache.SetCacheability(HttpCacheability.Public);////告诉Cache Manager,页面的有效期为当前时间+15秒//Response.Cache.SetExpires(DateTime.Now.AddSec 阅读全文

posted @ 2011-12-06 14:29 zg_heng 阅读(3888) 评论(0) 推荐(1) 编辑

导航