Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is Web Part Life Cycle?

user-image
Question added by Syed Kamran Hyder , Senior UI/UX / Web & Graphic Designer / SharePoint Designer , Saudi Basic Industries Corporation (SABIC)
Date Posted: 2012/12/30
shiak bushra
by shiak bushra , front office executive , La Bella

Web Part Life Cycle starts with these terms On Init- to configure the webpart. On Load- to load add controls. Create Child Controls- It is use to create controls and set its property. Load View State- The view state of the web part is populated over here. On Pre Render- it is use to change the web part properties. Rente rContents- it generate the output in html. Dispose- to free the memory.

Mohamed Essam Hussien
by Mohamed Essam Hussien , Senior Full Stack engineer , Affinidi

On Page Load Constructor OnInit OnLoad ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart) CreateChildControls OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data) SaveViewState Render RenderChildren RenderContents On 1st Postback (PostBack click handler sets ViewState via public Property) Constructor OnInit CreateChildControls OnLoad PostBack click handling ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart) OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data) SaveViewState Render RenderChildren RenderContents On 2nd Postback (PostBack click handler sets ViewState via public Property) Constructor OnInit LoadViewState CreateChildControls OnLoad PostBack click handling ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart) OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data) SaveViewState Render RenderChildren RenderContents

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.