摘要: 1、缓存 从两个部分入手 1、页面缓存 在页面头部添加 1: <%@ OutputCache Duration="10" VaryByParam="None" %>使用了这个OutputCache指令,用来告诉浏览器此页面需要缓存10秒钟。注:页面加载时,如果调用ajax,则ajax无法缓存,必须自己处理ajax方面的缓存。2、代码缓存代码缓存使用HttpRunTime.Cache,使用例子如下 1: string resul = HttpRuntime.Cache["GetTemplate"]; 2: if(result 阅读全文
posted @ 2012-09-19 10:21 多啦A梦的弟弟 阅读(161) 评论(0) 推荐(0) 编辑