摘要: Most dynamic websites will usually update their content based on a few items. The first most and obvious occurrence would be that the content of the page actually changed; Either your XML file has bee... 阅读全文
posted @ 2010-01-29 20:43 emanlee 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 为每个session页配制缓存是通过 @ OutputCache 指令的属性 VaryByCustom 来实现的。按照下面的脚本(包含到一个.aspx文件中),花上10秒钟就可以为各个session ID用户配制独立的页面版本。 <%@ OutputCache Duration="10" VaryByParam="None" VaryByCustom... 阅读全文
posted @ 2010-01-29 20:03 emanlee 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 使用@ OutputCache指令 使用@ OutputCache指令,能够实现对页面输出缓存的一般性需要。@ OutputCache指令在ASP.NET页或者页中包含的用户控件的头部声明。这种方式非常方便,只需几个简单的属性设置,就能够实现页面的输出缓存策略。@ OutputCache指令声明代码如下。 @ OutputCache指令代码 <%@ OutputCache CacheProfile... 阅读全文
posted @ 2010-01-29 19:00 emanlee 阅读(254) 评论(0) 推荐(0) 编辑
摘要: <%@ OutputCache Duration="10" VaryByParam="none" %> Response.Write(DateTime.Now.ToString()); //========================================================== if (!this.IsPostBa... 阅读全文
posted @ 2010-01-29 18:58 emanlee 阅读(306) 评论(0) 推荐(0) 编辑
摘要:        最近要用到缓存,所以才去找了相关资料,开始在一个用户控件头加入@ OutputCache指令,发现第一次进入页面是对了,第二次再进入时就出错了。郁闷…… 这里@ OutputCache的一些参数说明:        以声明的方式控制 ASP.NET 页或页中包含的... 阅读全文
posted @ 2010-01-29 18:48 emanlee 阅读(266) 评论(0) 推荐(0) 编辑
摘要: You are wondering whether master pages are a good solution in ASP.NET. The author thinks master pages are a needlessly confusing and slow solution to a problem that confounds object-oriented programmi... 阅读全文
posted @ 2010-01-29 18:38 emanlee 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: 把treeView做到一个用户控件里,然后设置用户控件的缓存, 或者直接把treeView放到Cache里去,我的母版页有个treeView,它是动态生成的!但是现在我每跳转一次界面,它就会去数据库查询一次!我想把它用页面部分缓存,可是不会写!也没在母版页找到<%@ OutPutCache %>,希望哪个大虾指点一二! 问题补充:我就是想把这个treeView缓存起来! 我这个tree... 阅读全文
posted @ 2010-01-29 18:01 emanlee 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: sqlserver中的存储过程完整代码 /***************************************************************** * 存储过程名: GetCustomersDataPage  * 过程描述: 通用大数据集分页 * 传入参数:  * 传出参数:  * 修改记录 * 姓名   日期 ... 阅读全文
posted @ 2010-01-29 12:16 emanlee 阅读(340) 评论(0) 推荐(0) 编辑