Web Part Life Cycle on page load
- OnInit
- OnLoad
- Connection Consuming
- CreateChildControls
- OnPreRender
- Render (RenderContents, etc)
Web Part Life Cycle on button click
- OnInit
- CreateChildControls
- OnLoad
- Click Event Handling
- Connection Consuming
- OnPreRender
- RenderContents
Hey prabhakar thank you for the post. Is there a way to invert Click Event Handling with Connection Consuming? Or to force the Connection Consuming in Page Load?
ReplyDeleteHi..you cannot change the order of the lifecycle events. It agree that it would make life a lot easier but your best option would be to store the data in a temporary cache.. regards, Prabhakar Reddy
ReplyDelete