时间:2021-07-01 10:21:17 帮助过:12人阅读
- <br><system.web> <br><outputCacheSetting> <br><outputCacheProfiles> <br><add name="cacheTest" duration="50"/> <br><outputCacheProfiles> <br></outputCahceSetting> <br></system.web> <br> <br>在页面中声明 <br><%@ OutputCache CacheProfile="cacheTest" VaryByParam="none"%> <br>VaryByControl:通过控件来改变缓存 <br><%@OutputCache Duration="60" VaryByParam="none" VaryByControl="Button1"%>