What is Web part life cycle?

 Posted by Sandipta_tripathy on 2/7/2011 | Category: SharePoint Interview questions | Views: 5099 | Points: 40

Web Part Life Cycle starts with
OnInit- to configure the webpart.
OnLoad- to load add controls.
CreateChildControls- It is use to create controls and set its property.
LoadViewState- The view state of the web part is populated over here.
OnPreRender- it is use to change the web part properties.
RenterContents- it generate the output in html.
OnUnLoad- to unload the web part.
Dispose- to free the memory.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response