I'm currently programming some connectable Web Parts for MOSS 2007 and want to make this a small note to self:
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
Keep this in mind because if you set a variable in the 'Connection Consuming' step, you can only access it after the step has occurred. So if you want to use it before that step you must store it in ViewState/Cache/other.