Wednesday, May 16, 2012

Sharepoint WebPart lifeCycle

sharepoint webpart lifecycle

1.OnInit-To configure the webpart like web browsable properties.
2.OnLoad-To load to add controls.
3.CreateChildControls-To create controls,set it properties.
4.LoadViewState-ViewState of webpart populated here.Only at Postback
5.OnPreRender-It is used to change webpart properties.
6.Render Contents-It generates output in html.
7.OnUnload-To unload webpart.
8.dispose-To free the memory.

No comments:

Post a Comment