Aaron Li's Blog

Write it down before I forget

  Home  |   Contact  |   Syndication    |   Login
  30 Posts | 0 Stories | 21 Comments | 1 Trackbacks

News

Google

Archives

Other's Idea

Page Life Cycle In ASP.NET 2.0
 
Stage
Event
What To Do
What Done
Initialization
Page PreInit
- change themes, master pages
- access properties for a profile
master pages, themes, etc. are applied
 
Control Init
Page Init
- read or initialize properties of controls in the control hierarchy.
- add dynamic controls that need to utilize view state
Controls are initialized with declarative properties.
 
Page InitComplete
- access controls on the page
Begin to track view state changes
Page Load
Page PreLoad
 
View state data saved from the previous page are populated to the controls
Postback data are restored
 
Page Load
Control Load
 
 
Raise Postback Event
 
 
Control events are handled
 
Page LoadComplete
 
 
PreRender
Page PreRender
 
 
 
Page PreRenderComplete
 
All controls have been added to the page and the page is ready to be rendered
Save View State
 
 
View state and control state have been saved
 
Page SaveStateComplete
 
 
Render
 
 
HtmlTextWriter is initialized and the page is rendered to the browser
Unload
Control Unload
Page Unload
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
posted on Sunday, May 27, 2007 5:16 PM

Feedback

# re: Page Life Cycle In ASP.NET 2.0 3/5/2008 10:01 AM Guest
good one


# re: Page Life Cycle In ASP.NET 2.0 11/7/2008 1:37 AM Jp
Very good summary of page life cycle....

# re: Page Life Cycle In ASP.NET 2.0 12/28/2009 8:18 AM pratik
nice i like the way of explanation. i will use same way to learn

# Page Life Cycle In ASP.NET 2.0 4/15/2011 4:38 PM tanai
This is a nice article..
Its easy to understand ..
And this article is using to learn something about it..

c#, dot.net, php tutorial, Ms sql server

Thanks a lot..!
ri70

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: