Click Here for 3 Month Free of ASP.NET Hosting!
Home | Submit an interview question | Filter by category | Filter by job function | Filter by company
 
Member Information
User Id
Password
 
Forgot Password
Technology Category
.NET (1202)
Languages (103)
Database (146)
Operating System (48)
Reporting (5)
Third-Party Tools (2)
Testing (91)
OOP (75)
Web Development (40)
Design Patterns (89)
General (9)
Networking (88)
Hardware (63)
Brain Exercise (2)
Others (37)
 Our Network
.NET Heaven
C# Corner
Interview Corner
Longhorn Corner
Mindcracker
VB.NET Heaven
Home » .NET » .NET
explain about page life cycle in Asp.net
Posted by Kranthi Kumar Verroju Jul 25, 2006
Viewed : 14274 times
Major Category : .NET
Minor Category : ASP.NET
Total Replies : 3
Become a Sponsor
 EDITORIAL ANSWER  
No Reply Yet
 ANSWERS BY USERS  
Mohd Nasar
Mar 12, 2008
Stage Events/Method
Page Initialization Page_Init
View State Loading LoadViewState
Postback data processing LoadPostData
Page Loading Page_Load
PostBack Change Notification RaisePostDataChangedEvent
PostBack Event Handling RaisePostBackEvent
Page Pre Rendering Phase Page_PreRender
View State Saving SaveViewState
Page Rendering Page_Render
Page Unloading Page_UnLoad
Arjun Hotwani
Sep 11, 2007

1. OnInit (Init)  -- Inializes all Child controls on the Page

2. LoadControlState  -- Loads the Control State 

3. LoadViewState -- Loads the View State

4. LoadPostData -- Control properties are set according to the received form data

5. Load -- Actions can be performed on the controls as all the pre-activities are complete by this time

6. RaisePostDataChangedEvent -- This event is raised if data has been changed in previous and Current Postbacks.

7. RaisePostBackEvent -- This event handles the user action that caused the Postback.

8. PreRender (OnPreRender) -- This event takes place between postback and saving viewstate. Till this stage changes will be saved to the control.

9. SaveControlState -- Self Explanatory

10. SaveViewState -- Self Explanatory

11. Render -- Generates artifacts at Client side (HTML,DHTML,Scripts) to properly display controls

12. Dispose -- Releases unmanaged Resource ( Database connections, file handles)

13. Unload -- Releases managed Resources ( Instances created by CLR)

bhaskara Reddy
Jul 25, 2006

While excuting the page, it will go under the fallowing steps(or fires the events) which collectivly known as Page Life cycle.

Page_Init                             -- Page Initialization
LoadViewState                     -- View State Loading
LoadPostData                      -- Postback data processing
Page_Load                          -- Page Loading
RaisePostDataChangedEvent  -- PostBack Change Notification
RaisePostBackEvent             -- PostBack Event Handling
Page_PreRender                  -- Page Pre Rendering Phase
SaveViewState                   -- View State Saving
Page_Render                      -- Page Rendering
Page_UnLoad                     -- Page Unloading

  
1
World Class ASP.NET Hosting - 3 Month Free Hosting, Click Here!
 

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Advertise with us
Current Version: 2.2009.3.2
 © 1999 - 2009  Mindcracker LLC. All Rights Reserved