MaterPage中事件的触发顺序
2007-05-25 09:15
447 查看
When you work with master pages and content pages, both can use the same events (such as Page_Load).
Be sure you know which events come before others. You are bringing two classes together to create a single
page class, and a specific order is required. When an end user requests a content page in the browser,
the event ordering is the following:
❑Master page child controls initialization: All server controls contained within the master page
are first initialized.
❑ Content page child controls initialization: All server controls contained in the content page are
initialized.
❑ Master page initialization: The master page itself is initialized.
❑ Content page initialization: The content page is initialized.
❑ Content page load: The content page is loaded (this is the Page_Load event followed by the
Page_LoadComplete event).
❑ Master page load: The master page is loaded (this is also the Page_Load event followed by the
Page_LoadComplete event).
❑ Master page child controls load: The server controls on the master page are loaded onto
the page.
❑ Content page child controls load: The server controls on the content page are loaded onto
the page.
1、Master页面中的控件初始化:所有包含在Master页面中的服务器端控件首先被初始化;
2、Content页面中的控件初始化:所有包含在Content页面中的服务器控件紧接着被初始化;
3、Master页面初始化:Master页面本身初始化;
4、Content页面初始化:Contetn页面本身初始化;
5、载入Content页面:content页面被载入()
Be sure you know which events come before others. You are bringing two classes together to create a single
page class, and a specific order is required. When an end user requests a content page in the browser,
the event ordering is the following:
❑Master page child controls initialization: All server controls contained within the master page
are first initialized.
❑ Content page child controls initialization: All server controls contained in the content page are
initialized.
❑ Master page initialization: The master page itself is initialized.
❑ Content page initialization: The content page is initialized.
❑ Content page load: The content page is loaded (this is the Page_Load event followed by the
Page_LoadComplete event).
❑ Master page load: The master page is loaded (this is also the Page_Load event followed by the
Page_LoadComplete event).
❑ Master page child controls load: The server controls on the master page are loaded onto
the page.
❑ Content page child controls load: The server controls on the content page are loaded onto
the page.
1、Master页面中的控件初始化:所有包含在Master页面中的服务器端控件首先被初始化;
2、Content页面中的控件初始化:所有包含在Content页面中的服务器控件紧接着被初始化;
3、Master页面初始化:Master页面本身初始化;
4、Content页面初始化:Contetn页面本身初始化;
5、载入Content页面:content页面被载入()
相关文章推荐
- .Net2.0 中 Page 页面的事件触发顺序
- .Net2.0中Page的事件触发顺序
- 页面(Page)加载用户控件(UserControl)的事件触发顺序
- 页面(Page)加载用户控件(UserControl)的事件触发顺序
- ASP.NET 2.0中Page事件的触发顺序
- 判断是否首次触发pageLoad 与 PageRequestManager.getInstance()对象的几个事件触发顺序
- 判断是否首次触发pageLoad 与 PageRequestManager.getInstance()对象的几个事件触发顺序
- 页面(Page)加载用户控件(UserControl)的事件触发顺序
- page在处理post请求时需要处理数据的加载IPostBackDataHandler和事件的触发IPostBackEventHandler.
- [导入]ASP.NET 2.0中Page事件的执行顺序
- 网页的Page事件,如何触发
- 如何触发AspxGridview的PageIndexChanged 客户端事件?
- 如何在button事件后触发page_load
- 如何在页面Page_Load时自动触发Button按钮的Command事件
- System.Web.UI.Page事件执行顺序
- .Net Install类的Install、Commit等事件触发顺序
- 针对focus和blur的Dom事件触发顺序
- ASP.NET中Master Page和Content Page里的事件处理顺序
- 运行page页面时的事件执行顺序
- [分享]DHTML对象鼠标事件的触发顺序