摘要: 原文地址:http://www.cnblogs.com/jasenkin/archive/2010/11/23/asp_net_page_process.html对于每一个.NET程序员,对于ASP.NET页面生命周期都有一定的了解和把握。关于一些细节方面请参考http://blog.sina.com.cn/s/blog_5f7aa2970100d5h4.html,内容比较详尽,本文将不再概述。本文主要是从继承以及视图状态,事件,委托,容器控件以及子控件这些方面来把握和控制整体的页面生命周期。 先看下下面4个相关页面的代码(为降低复杂度,很多代码被删减与精简,仅提供最基本的操作代码)。仅仅几个 阅读全文
posted @ 2011-02-22 18:06 wbqsln 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 页面框架通过如下过程处理aspx文件请求:1:解析aspx文件,并创建一个控件树;2:使用控件树动态实现一个继承自Page类的类或者控件 ;3:动态编译类;4:缓存编译类,以备后用;5:动态创建一个编译类的实例。页面开始启动生命期,在这个过程中,页面将通过生命周期的不同阶段;=========================================================页面经历了如下阶段【其中一些阶段标记为仅仅回传,是说只有在被回传到服务器时,页面才经历这些阶段】:01:页面首先从QueryString或者Request对象的Form集合中获得回传数据。02:页面检测回传数据 阅读全文
posted @ 2011-02-22 16:24 wbqsln 阅读(291) 评论(0) 推荐(1) 编辑
摘要: Origional Url :http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspxTRULY UNDERSTANDING VIEWSTATEViewState is a very misunderstood animal. I would like to help put an end to the madness by attempting to explain exactly how the ViewState mechanism works, from beg 阅读全文
posted @ 2011-02-22 15:22 wbqsln 阅读(217) 评论(0) 推荐(0) 编辑
摘要: [The original article is from:http://www.codeproject.com/KB/aspnet/AspDotNetCache.aspx]IntroductionCaching is a technique of storing data in memory which takes time to create. Caching is one of the best features of the ASP.NET. For example, you could cache the data from complex query which takes tim 阅读全文
posted @ 2011-02-22 15:09 wbqsln 阅读(209) 评论(0) 推荐(0) 编辑