Search This Blog

Monday, November 1, 2010

Web Part Lifecycle (Event Sequence)


Web Part Events Fired

Initial Load:
Events fired when a web part is initially loaded.
  • OnInit
  • OnLoad
  • EnsureChildControls
  • CreateChildControls
  • EnsureChildControls
  • CreateControlCollection
  • EnsureChildControls (many)
  • OnPreRender
  • EnsureChildControls (many)
  • SaveViewState
  • RenderControl
  • Render
  • RenderControl
  • RenderContents
  • RenderChildren
  • OnUnload
  • Dispose
Post-back:
Items in green are added to the postback process.
  • OnInit
  • LoadViewState
  • EnsureChildControls
  • CreateChildControls
  • EnsureChildControls
  • CreateControlCollection
  • EnsureChildControls (many)
  • OnLoad
  • btnUpdate_Click
  • OnBubbleEvent
  • EnsureChildControls
  • OnPreRender
  • EnsureChildControls (many)
  • SaveViewState
  • RenderControl
  • Render
  • RenderControl
  • RenderContents
  • RenderChildren
  • OnUnload
  • Dispose

No comments:

Post a Comment