Reader Level:

ASP.Net 2.0 What's new in Page Life Cycle

By Moses Soliman on Jan 07, 2006
ASP.NET 2.0 adds some new events to allow you to follow the request processing more closely and precisely. This article looks into those events.

Events and Life Cycle of a Page (ASP.Net 1.x VS ASP.Net 2.0):

In the ASP.NET runtime the life cycle of a page is marked by a series of events. In ASP.NET 1.x, based on user interaction a page request is sent to the Web server. The event that is initiated by the page request is Init. After the Init event, Load event is raised. Following the Load event, PreRender event is raised. Finally, the Unload event is raised and an output page is returned to the client.

ASP.NET 2.0 adds a few new events to allow you to follow the request processing more closely and precisely.
These new events are discussed in the following table.


New Events in ASP.NET 2.0:




This occurs before the page begins initialization. This is the first event in the life of an ASP.NET 2.0 page.


This occurs when the page initialization is completed.


This occurs immediately after initialization and before the page begins loading the state information.


This occurs at the end of the load stage of the page's life cycle.


This occurs when the pre-rendering phase is complete and all child controls have been created. After this event, the personalization data and the view state are saved and the page renders to HTML.

This new features enable developer to dynamically modify the page output and the state of constituent controls by handling these events.

Moses Soliman
Moses Soliman

Moses Soliman Software Engineer, graduated from the Faculty of Computers & Information Systems year 2003-Ain Shams University- in Cairo. Working with Microsoft .NET technology since early beta releases. Main experiance ... Read more