ASP.NET Page Life Cycle
原文
http://www.codeproject.com/KB/aspnet/Page_Life_Cycle_Explain.aspx
Stage | Events/Method |
Initialization of the page | Page_Init |
Loading of the View State | LoadViewState |
Processing of the Postback data | LoadPostData |
Loading of Page | Page_Load |
Notification of PostBack | RaisePostDataChangedEvent |
Handling of PostBack Event | RaisePostBackEvent |
Pre Rendering of Page | Page_PreRender |
Saving of view state | SaveViewState |
Rendering of Page | Page_Render |
Unloading of the Page | Page_UnLoad |
1.PreInit
这个事件是页面生命周期的开始。
2.Init
Viewstate在此事件中还不可用Themes 在此事件中请求。
3.InitComplete
4.PreLoad
5.Load
6.Control Events
7.Load Complete
8.PreRender
9.SaveStateComplete10.Render11. Unload