ASP.NET环境下到底是怎样的顺序呢
来源:互联网 发布:为知笔记 设置密码 编辑:程序博客网 时间:2024/04/30 18:19
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
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开发是开发环境的安装顺序。
- try catch finally的执行顺序到底是怎样的?
- PCB布线的顺序到底是怎样才合理
- 关于PCB布线的顺序到底是怎样才合理?
- ASP.NET页面是怎样生成的
- 前方到底是怎样的?
- asp.net 应该怎样学呢?
- ASP.NET、.NET和C#的关系是怎样的?
- ASP.NET、.NET和C#的关系是怎样的?
- ASP.NET、.NET和C#的关系是怎样的?
- ASP.NET、.NET和C#的关系是怎样的?
- HttpModule到底是干什么的呢?
- eventmachine 到底是干什么的呢?
- modCount到底是干什么的呢
- modCount到底是干什么的呢
- modCount到底是干什么的呢
- 在云计算的环境中,部署NoSQL的优缺点是怎样的呢?
- 如何让Gridview在没有数据的时候显示表头
- 演练VC中的COMMON一族(转贴)之一 选择自 happyparrot 的 Blog
- 关于收货 挂订单库存
- ewebeditor编辑器上传漏洞防范方法
- 行列转换--表
- ASP.NET环境下到底是怎样的顺序呢
- 今天的第一个练习---求两个数的最大公约数
- 函数说明(DrawText) 08.11.5
- 矩阵
- C#里巧用DateTime预设一些可选的日期范围(如本年度、本季度、本月等)
- C++中的运行时类型检查
- GridView 72般绝技
- 字段加密
- 简析RIA客户端开发技术