易截截图软件、单文件、免安装、纯绿色、仅160KB

ASp.NET 2.0中Page事件的执行顺序

Page 执行中将按照如下顺序激活事件:
Page.PreInit
Page.Init
Page.InitComplite
Page.PreLoad
Page.Load
Page.LoadComplete
Page.PreRender
Page.PreRenderComplete
如果页面从令一个页面继承,如BasePage:System.Web.UI.Page,在BasePage中做了一些扩展,如权限检查,而其他页面从BasePage继承,则BasePage和最终Page的事件激活顺序是:
UI.PreInit
Page.PreInit
UI.Init
Page.Init
UI.InitComplite
Page.InitComplite
UI.PreLoad
Page.PreLoad
UI.Load
Page.Load
UI.LoadComplete
Page.LoadComplete
UI.PreRender
Page.PreRender
UI.PreRenderComplete
Page.PreRenderComplete
如果使用了MasterPage,则MasterPage中的事件和ContentPage中的事件按照下面顺序激活:
ContentPage.PreInit
Master.Init
ContentPage.Init
ContentPage.InitComplite
ContentPage.PreLoad
ContentPage.Load
Master.Load
ContentPage.LoadComplete
ContentPage.PreRender
Master.PreRender
ContentPage.PreRenderComplete
更进一步,如果ContentPage继承BasePage,那么,各事件的执行顺序将变成:
UI.PreInit
ContentPage.PreInit
Master.Init
UI.Init
ContentPage.Init
UI.InitComplite
ContentPage.InitComplite
UI.PreLoad
ContentPage.PreLoad
UI.Load
ContentPage.Load
Master.Load
UI.LoadComplete
ContentPage.LoadComplete
UI.PreRender
ContentPage.PreRender
Master.PreRender
UI.PreRenderComplete
ContentPage.PreRenderComplete


相关文档:

ASP.NET 运行机制总结


ASP.NET 运行机制总结
     这些天看了一些关于ASP.NET底层的文章,受益匪浅。
     为什么要了解这些底层呢?我觉得做为一个喜欢开发ASP.NET程序员,我不们不仅要知道“怎么做”,我们更应该知道“为什么这么做”,这样的我们才能做得更好。这 ......

ASP.NET页面运行机制以及请求处理流程

 
IIS处理页面的运行机制:
IIS自身是不能处理像ASPX扩展名这样的页面,只能直接请求像HTML这样的静态文件,之所以能处理ASPX这样扩展名的页面,是因为IIS有一个ISAPI过滤器,它是一个COM组件。ASP.NET服务在注册到IIS的时候,就会添加一个Win32的扩展动态库aspnet_isapi.dll。并将扩展可以处理的页面扩展名(如ASPX ......

VS2005 不能新建 ASP.net WEB应用程序

vs2005 没有ASP.NET WEB应用程序(Application)的解决方案
vs2005 sp1下载地址
2009-02-21 09:08
VS80sp1-KB926604-X86-CHS.exe
WebApplicationProjectSetup.msi
 
相关文章:
最近帮同事安装了Vs2005和sp1,发现根本打不开原来的程序,新建项目中没有ASP.NET WEB应用程序,同事的系统是windows 2003,而在wi ......

ASP.NET 安全认证

ASP.NET 安全认证(一)—— 如何运用 Form 表单认证
ASP.NET 安全认证(二)——灵活运用 Form 表单认证中的 deny 与 allow 及保护 .htm 等文件
ASP.NET 安全认证(三) ——用Form 表单认证实现单点登录(Single Sign On)
ASP.NET 安全认证(四)Form 认证的补充 ......

ASP.net 自制TableTree实现

using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace UserControl.UI
{
 /// <summary>
 /// TreesTable 的摘要说明。
 /// </summary>
 public class TreesTable
 {
  public interface iTrees ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号