Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is Web Part Life Cycle?

user-image
Question ajoutée par Syed Kamran Hyder , Senior UI/UX / Web & Graphic Designer / SharePoint Designer , Saudi Basic Industries Corporation (SABIC)
Date de publication: 2012/12/30
shiak bushra
par 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
par 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