Explain various ASP.NET Page lifecycle events ?

Various Page lifecycle events are listed below :
  1. PreInit - Check IsPostBack Property , Create dynamic controls , Set Master page , Theme and Profile properties dynamically.
  2. Init - Read and Initialize control properties
  3. InitComplete
  4. PreLoad - Use this event if one wants to do something before Page or Control load
  5. Load - Set Control properties etc.
  6. Control Events - Handle Events specific to controls like button , link etc
  7. LoadComplete
  8. PreRender - occurs for each control on the page. Use the event to make final changes to the contents of the page or its controls.
  9. SaveStateComplete - perform tasks that require view state to be saved, but that do not make any changes to controls.
  10. Render - calls this method on each control.
  11. Unload - occurs for each control and then for the page. 

No comments:

Popular Posts