Hi All,<o:p></o:p>
Please see the Response to the following Question, "Mention the various events of the page life cycle in ASP.Net". Apart from Page Events i have also included the whole Page Hierarchy.<o:p></o:p>
1. Page Creation<o:p></o:p>
o Set initial component properties based on specification and template files. No component relationships established.<o:p></o:p>
2. OnInit (Broadcast)<o:p></o:p>
o Establish database connection.'Event' is broadcasted to the whole page hierarchy'.<o:p></o:p>
3. Viewstate Loading<o:p></o:p>
o Page is restored to state displayed to the user the last time<o:p></o:p>
4. Post Data Loading<o:p></o:p>
o Data submitted utilized by components or component properties changed by data posted by the user.<o:p></o:p>
5. OnLoad (Broadcast)<o:p></o:p>
o Dynamically create a new component. 'Event' is broadcasted to the whole page hierarchy'.<o:p></o:p>
6. Post Data Loading<o:p></o:p>
o Dynamically created components from 'Onload' event can load data submitted by the user.<o:p></o:p>
7. Raising Post Data Changed Events<o:p></o:p>
o If a component's data has changed, raise related events signaling the change. Such as 'OnTextChanged'<o:p></o:p>
8. Input Validation<o:p></o:p>
o Validators registered with the page components will be executed.<o:p></o:p>
9. Postback Event<o:p></o:p>
o A postback event is raised by the event sender. Such as TButton with a OnClick event.<o:p></o:p>
10. OnPreRender Event (Broadcast)<o:p></o:p>
o (Example override usability), (Note that the post data loaded) Posted data validation or GUI updates, such as running 'TWenControl::setCssClass()'. Event is broadcast to the Whole page hierarchy.<o:p></o:p>
11. Viewstate Saving<o:p></o:p>
o The viewstate of the page hierarchy is saved in persistent storage.<o:p></o:p>
12. Page Rendering<o:p></o:p>
o The page and its components are rendered recusively to the user.<o:p></o:p>
13. OnUnload (Broadcast)<o:p></o:p>
o Example Override Usability, Disconnect database connection, "Event is broadcast to the whole page hierarchy"<o:p></o:p>
Regards,<o:p></o:p>
Balaji Baskar
Blog me @ http://spaces.msn.com/members/bbaskar