Interview Question in Asp.net 2.0


 

Interview Question :: Explain the Event Life cycle of ASP.NET 2.0?

 Explain the Event Life cycle of ASP.NET 2.0?

by ksk
VoteNowAnswers to "Explain the Event Life cycle of ASP.NET 2.0?"

 The events occur in the following sequence. Its best to turn on tracing(<% @Page Trace=”true”%>) and track the flow of events :

PreInit – This event represents the entry point of the page life cycle. If you need to change the Master page or theme programmatically, then this would be the event to do so. Dynamic controls are created in this event.

Init – Each control in the control collection is initialized.
 
Init Complete* - Page is initialized and the process is completed.
 
PreLoad* - This event is called before the loading of the page is completed.
by ksk