Wednesday, June 12, 2013

The Page Life Cycle

Besides from the Applications life cycle there is also the Page life cycle for each page in a website. The following is a list of the page life cycle.
  1. The user makes a request to for a page.
  2. On the webserver, the ASP.NET compile the page (if necessary), or pull from cache (if available).
  3. (Start) Set request and response objects. Determine IsPostBack.
  4. (Init) Initialize page controls (but not their properties). Apply page theme.
  5. (Load) If PostBack, load control properties from view state.
  6. (Validation) Validate page and validator controls
  7. Call control event handlers (for PostBack request).
  8. (Rendering) Save view state. Render controls and display the page.
  9. (Unload) Unload request and response objects. Perform cleanup. Page is ready to be discarded. Return response to user.

No comments:

Post a Comment