SharePoint Webpart LifeCycle

OnInit: Define controls that will be involved with WebPart

CreateChildControls: Control properties and methods previously declared.

OnPreRender: Control’s value kept by ViewState (for example Item value set up by the user to DropDownList nation), is available. For this reason, it’s normal to begin business procedure from here, and in our case we are going to load values for the second dropdown list (Town DropDownList) with the proper data:

Render: For HTML rendering WebPart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

%d bloggers like this: