Asp.Net 頁面執行順序

  • 一般情況下:

Page.PreInit
Page.Init
Page.InitComplete
Page.PreLoad
Page.Load
Page.LoadComplete
Page.PreRender
Page.PreRenderComplete

  • 使用了 MasterPage 情況, MasterPage 與 ContentPage 事件順序:

ContentPage.PreInit
Master.Init
ContentPage.Init
ContentPage.InitComplete
ContentPage.PreLoad
ContentPage.Load
Master.Load
ContentPage.LoadComplete
ContentPage.PreRender
Master.PreRender
ContentPage.PreRenderComplete

參考http://www.dotnetcurry.com/ShowArticle.aspx?ID=61

(Visited 43 times, 1 visits today)