随笔分类 -  [01] ASP.NET

上一页 1 2 3 4 5 6 7 ··· 9 下一页
ASP.NET用于开发或设计网页/网站。
摘要: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 阅读(721) 评论(0) 推荐(0) 编辑
摘要:为每个session页配制缓存是通过 @ OutputCache 指令的属性 VaryByCustom 来实现的。按照下面的脚本(包含到一个.aspx文件中),花上10秒钟就可以为各个session ID用户配制独立的页面版本。 <%@ OutputCache Duration="10" VaryByParam="None" VaryByCustom... 阅读全文
posted @ 2010-01-29 20:03 emanlee 阅读(706) 评论(0) 推荐(0) 编辑
摘要:使用@ OutputCache指令 使用@ OutputCache指令,能够实现对页面输出缓存的一般性需要。@ OutputCache指令在ASP.NET页或者页中包含的用户控件的头部声明。这种方式非常方便,只需几个简单的属性设置,就能够实现页面的输出缓存策略。@ OutputCache指令声明代码如下。 @ OutputCache指令代码 <%@ OutputCache CacheProfile... 阅读全文
posted @ 2010-01-29 19:00 emanlee 阅读(252) 评论(0) 推荐(0) 编辑
摘要:<%@ OutputCache Duration="10" VaryByParam="none" %> Response.Write(DateTime.Now.ToString()); //========================================================== if (!this.IsPostBa... 阅读全文
posted @ 2010-01-29 18:58 emanlee 阅读(301) 评论(0) 推荐(0) 编辑
摘要:       最近要用到缓存,所以才去找了相关资料,开始在一个用户控件头加入@ OutputCache指令,发现第一次进入页面是对了,第二次再进入时就出错了。郁闷…… 这里@ OutputCache的一些参数说明:        以声明的方式控制 ASP.NET 页或页中包含的... 阅读全文
posted @ 2010-01-29 18:48 emanlee 阅读(265) 评论(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 阅读(1061) 评论(0) 推荐(0) 编辑
摘要:把treeView做到一个用户控件里,然后设置用户控件的缓存, 或者直接把treeView放到Cache里去,我的母版页有个treeView,它是动态生成的!但是现在我每跳转一次界面,它就会去数据库查询一次!我想把它用页面部分缓存,可是不会写!也没在母版页找到<%@ OutPutCache %>,希望哪个大虾指点一二! 问题补充:我就是想把这个treeView缓存起来! 我这个tree... 阅读全文
posted @ 2010-01-29 18:01 emanlee 阅读(1199) 评论(0) 推荐(0) 编辑
摘要:sqlserver中的存储过程完整代码 /***************************************************************** * 存储过程名: GetCustomersDataPage  * 过程描述: 通用大数据集分页 * 传入参数:  * 传出参数:  * 修改记录 * 姓名   日期 ... 阅读全文
posted @ 2010-01-29 12:16 emanlee 阅读(340) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/gaojun/archive/2009/05/30/1492303.html 在使用VS2005的过程中发现了一个问题,就是原来在VS2003中很好用的全局变量文件Global.ascx改变了,只剩下一个页面,文件所有代码都是写在页面上的。 当我们发布Web程序的时候这个文件也没有被发布出去,致使在Global中写的代码都没有被执行。最先开始用了一个临... 阅读全文
posted @ 2010-01-27 23:06 emanlee 阅读(398) 评论(0) 推荐(0) 编辑
摘要:A key reason that the Application object exists in ASP.NET is for compatibility with classic ASP code—to allow easier migration of existing applications to ASP.NET. If you are creating an ASP.NET appl... 阅读全文
posted @ 2010-01-27 22:10 emanlee 阅读(1775) 评论(0) 推荐(0) 编辑
摘要:HttpContext.Current.Application来保存变量时,发现一段时间没有活动连接时,会和Session变量一样被自动回收,清空了,不知道修改什么地方可以实现生存周期的控制? 原来IIS6.0应用程序池的性能设置里可以设置回收空闲进程的时间,默认好象只有30分钟,怪不得.无论是static还是application都依赖进程,难怪都被回收了. ----------------... 阅读全文
posted @ 2010-01-27 21:07 emanlee 阅读(674) 评论(0) 推荐(0) 编辑
摘要:Asp.net中Application Session Cookie ViewState Cache Application 1. Application用来保存所有用户共用的信息 (网站内共享数据)2. 在Asp时代,如果要保存的数据在应用程序生存期内不会或者很少发生改变,那么使用Application是理想的选择。但是在Asp.net开发环境中我们把类似的配置数据放在Web.config中。 ... 阅读全文
posted @ 2010-01-23 11:12 emanlee 阅读(407) 评论(0) 推荐(0) 编辑
摘要:asp.net性能与缓存 在MSDN网络课堂中下载了一些九月份的网络讲座。有很多还是很有意义的。《ASP.NET系列讲座之一:性能与缓存》是由微软开发工具专家王立楠讲授。王先生的讲解非常清晰,课件也很详细,虽然是网络讲座,但Down下来的视频文件声音很清晰。仔细听了一遍,把其中的某些要点记录了下来。此讲主要是介绍了一些tip,以提高ASP.NET的性能。以下就是讲座介绍的一些技巧:一、避免不必要的... 阅读全文
posted @ 2010-01-22 15:08 emanlee 阅读(266) 评论(0) 推荐(0) 编辑
摘要:为当前应用程序配置会话状态设置。<sessionState mode="[Off|InProc|StateServer|SQLServer|Custom]" timeout="number of minutes" cookieName="session identifier cookie name" cookieless= "[true|false|AutoDetect|UseCookies... 阅读全文
posted @ 2010-01-20 17:33 emanlee 阅读(554) 评论(0) 推荐(0) 编辑
摘要:添加删除程序.再点左边的添加删除WINDOWS组件. 双击附件和工具, 弹出附件和工具对话框,再双击游戏选项,这时把上面的INTERNET游戏复选框的勾去掉. 阅读全文
posted @ 2010-01-04 09:31 emanlee 阅读(340) 评论(0) 推荐(0) 编辑
摘要:使用母版页,Ajax UpdatePanel包含的下拉框,点击下拉框PostBack之后focus不奏效,第二次点击下拉框PostBack之后focus奏效???? JS function resetFocus(id){           var obj=document.getElementById(... 阅读全文
posted @ 2010-01-02 09:34 emanlee 阅读(486) 评论(3) 推荐(0) 编辑
摘要:  最近在修改公司的邮件发送系统。不熟悉C#,浏览代码以后,增加了通过SSL方式,GMAIL的smtp服务器需要SSL安全连接。 测试通过,可以发送邮件。 但是部署在备用机房服务器以后(windows server 2003),在发送的时候,报错,"server does not support secure connection." 通过telent直接访问smt... 阅读全文
posted @ 2009-12-25 22:14 emanlee 阅读(762) 评论(0) 推荐(0) 编辑
摘要:aspx page<script language="javascript" type="text/javascript"> function clicking(Obj) { var a=document.getElementById("ctl00_ContentPlaceHolder1_ctl20_AAA1_rbtnStudent"); var b=document.getElem... 阅读全文
posted @ 2009-12-04 20:32 emanlee 阅读(1126) 评论(0) 推荐(0) 编辑
摘要:"executionTimeout" in the machine.cofig <system.web>     <httpRuntime executionTimeout="3600" />   </system.web> The problem is solved after... 阅读全文
posted @ 2009-10-24 15:00 emanlee 阅读(1743) 评论(0) 推荐(0) 编辑
摘要:  DropDownList  onchange="" TextBox onchange="" CheckBox onclick="" RadioButton onclick=""   JavaScript: Checkbox onChange event is differe... 阅读全文
posted @ 2009-10-17 11:22 emanlee 阅读(555) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 9 下一页