.NET Evangelist

ASP. Net Page Life Cycle

  • When an ASP.NET page runs, the page goes through a life cycle in which it performs a series of processing steps.
  • These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering.
  • It is important for you to understand the page life cycle so that you can write code at the appropriate life-cycle stage for the effect you intend.

Page Life-Cycle Stages

  1. Page request
  2. Start
  3. Initialization
  4. Load
  5. Postback event handling
  6. Rendering
  7. Unload

1.Page request

  • The page request occurs before the page life cycle begins.
  • When the page is requested by a user, ASP.NET determines whether the page needs to be parsed and compiled (therefore beginning the life of a page),
  • OR whether a cached version of the page can be sent in response without running the page

2.Start

View original post 1,057 more words

Advertisements