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
相关文档:
进去寒假,由于一个浑浑噩噩的学期结束了,不想令自己继续沉溺在那昏天黑地之中,于是去Library借了一本很厚很重的C# ASP.NET的书,附光盘。有趣的,我用历来学习课本知识的放学学习C#和熟悉VS环境,还做了不少读书笔记,哎,真的没那个必要啊,不过看了1-2周之后,对于服务器端控件的确是熟悉不少,对于边边脚脚的一些页面 ......
IIS处理页面的运行机制:
IIS自身是不能处理像ASPX扩展名这样的页面,只能直接请求像HTML这样的静态文件,之所以能处理ASPX这样扩展名的页面,是因为IIS有一个ISAPI过滤器,它是一个COM组件。ASP.NET服务在注册到IIS的时候,就会添加一个Win32的扩展动态库aspnet_isapi.dll。并将扩展可以处理的页面扩展名(如ASPX ......
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 ......
http://rzchina.net/node/3210
Web.config文件中可配置的身份验证方式有Windows、Forms、PassPort、None。
Web.config文件中<authentication>节点,身份验证方式取决于该节点“mode”属性的设置。
1.None
None表示不执行身份验证。
2.Windows
IIS根据应用程序的设置执行身份验证,其中包含匿名身份 ......
csv 文件跟txt 文件比较相像可以用流直接读取.
excel 这种有结构的文件,流不能直接读取.
StreamReader m_sr=new StreamReader(this.FileLoad.PostedFile.InputStream, System.Text.Encoding.Default);
string s="";
string strTemp="";
while (m_sr.Peek()> ......