lifecycle

SILVER-U
1.Start-----(Requst,Response,ISPostBack,UICulture)

2.Initialize-----(init ,initComplete,PreLoad)
   init---Use this event to read or initialize control properties.
   PreLoad---After the Page raises this event, it loads view state for itself and all controls, and then processes any postback  data included with the Request instance.

3.Load(OnLoad)

4.Validation(Validate)

5.Event Handling
  (loadComplete,PreRender,SaveStateComplete)


6.Render

7.unload
-------------

Method:
This list is the generalized order in which methods fire when a page loads:

 1. Construct
2.ProcessRequest
3.FrameworkInitialize
4.InitializeCulture
5.If child controls are present:
      1.AddParsedSubObject
      2.CreateControlCollection
      3.AddedControl
       4.ResolveAdapter
6.DeterminePostBackMode
7.OnPreInit
8.OnInit
9.TrackViewState
10.OnInitComplete
11.OnPreLoad
12.OnLoad
13.OnLoadComplete
14.EnsureChildControls
     1.CreateChildControls
15.OnPreRender
16.OnPreRenderComplete
17.SaveViewState
18.OnSaveStateComplete
19.CreateHtmlTextWriter
20.RenderControl
21.Render
     1.RenderChildren
     2.VerifyRenderingInServerForm
22.OnUnload
23.Dispose

ld: analyse:
    S(1-7)
    I(8-11)
    L(12)
    V
    E(13-18)
    R(19-23)

發佈了32 篇原創文章 · 獲贊 3 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章