Geeks With Blogs
Dheeman Dutta Just Another Blog.....

I was planning to post this blog quite  a few weeks earlier but could not do so because of pretty tight schedule. I was pretty surprised to find out the amount of things that may go on behind the scenes when an .aspx page is loaded. I may skip a few sections as I did not feel that they were that important. However any sincere suggestion will be accepted.

 

The first in the long sequence loading of a .aspx page

 

  1. Pre Init

ü      No master page , theme is still associated.

ü      Page Scroll position is restored.

ü      Posted data is available.

ü      Page Controls are instantiated.

ü      Controls do not have any ID yet.

ü      Changing the master page is possible programmatically.

ü      IsCallBack, IsCrossPostBack, IsPostBack are set now.

 

  1. Init

ü      Master page, if present , is set and cannot be changed anymore.

ü      The Process Request method operates on the Page class and sets all the Ids of the controls.

ü      ViewState is not yet restored.

 

  1. InitComplete

 

ü      Tracking ViewState change is turned ON for all controls.

 

  1. ViewState Restoration

ü      __VIEWSTATE hidden field is restored.

ü      LoadViewState() loads the viewstate.

 

  1. Processing Posted Data

ü      All client data packed in HTTP request are processed.

ü      Control values are set.

  1. Preload

ü      Indicates that a page has terminated system level initialization.

  1. Load

ü      Page tree is created here.

 

  1. Handling Dynamically Created Controls

ü      Process the dynamically created controls

 

  1. LoadComplete

 

  1. PreRender

 

ü      Perform any updates before any output is rendered.

 

  1. PreRenderComplete
  2. SaveStateComplete

ü      Saves the ViewState.

 

  13. Unload.

 

 

Cheers......

 

 

 

 

 

 

 

 

Posted on Monday, September 11, 2006 5:10 AM | Back to top


Comments on this post: ASP.NET Page Life Cycle

# re: ASP.NET Page Life Cycle
Requesting Gravatar...
Nice!
Though I would like to add another stage:Render, after SaveStateComplete!

Vivek
Left by Vivek Thakur on Sep 12, 2006 4:56 PM

# re: ASP.NET Page Life Cycle
Requesting Gravatar...
I think you are right..
thanks mate
Left by Dheeman on Sep 13, 2006 6:25 AM

# re: ASP.NET Page Life Cycle
Requesting Gravatar...
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
Left by tanai on Apr 16, 2011 11:05 AM

Your comment:
 (will show your gravatar)


Copyright © Dheeman Dutta | Powered by: GeeksWithBlogs.net