The page will be activated in the following order:
Page. preinit
Page. init
Page. initcomplite
Page. Preload
Page. Load
Page. loadcomplete
Page. prerender
Page. prerendercomplete
If a page is inherited from a page, such as basepage: system. web. UI. page, some extensions are made in the basepage, such as permission check. When other pages inherit from the basepage, the order of activation of the events of the basepage and the final page is:
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
If masterpage is used, the events in masterpage and those in contentpage are activated in the following order:
Contentpage. preinit
Master. init
Contentpage. init
Contentpage. initcomplite
Contentpage. Preload
Contentpage. Load
Master. Load
Contentpage. loadcomplete
Contentpage. prerender
Master. prerender
Contentpage. prerendercomplete
Furthermore, if contentpage inherits the basepage, the execution sequence of each event is changed:
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 Masterpage. Master Usercontrol_ontop.ascx Page. aspx Usercontrol_inpage.ascx Usercontrol_onbuttom.ascx
Masterpage |
Usercontrolontop |
Page |
Usercontrolinpage |
Usercontrolonbuttom |
|
Init |
|
|
|
|
|
|
Init |
|
|
|
|
|
Init |
Init |
|
|
|
|
|
|
Init |
|
|
|
|
Load |
|
|
Load |
|
|
|
|
|
Load |
|
|
|
|
|
|
Levels |
|
|
|
|
|
Load |
ContRolevents |
Controlevents |
Controlevents |
Controlevents |
Controlevents |
|
|
Prerender |
|
|
Prerender |
|
|
|
|
|
Prerender |
|
|
|
|
|
|
Prerender |
|
|
|
|
|
Prerender |
|
Unload |
|
|
|
|
|
|
Unload |
|
|
|
|
|
Unload |
Unload |
|
|
|
|
|
|
Unload |
|
|