Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Life Cycle of a Page - ASP.NET

RSS
Modified on Sat, Sep 26, 2009, 6:39 PM by Administrator Categorized as ASP·NET Web Forms
{outline|||Step <1> - }

Mnemonic

The order of the following steps can be remembered as "R-SILVER-U".

  • R = Request
  • S = Start
  • I = page Init
  • L = page Load
  • V = Validation
  • E = Event handling
  • R = page Render
  • U = page Unload

Detailed Steps

Page Request

  • User requests a page
  • Server checks if page is cached. If so, the cached page is sent to the client.
  • Otherwise the page is parsed and compiled.

Start

  • Request and Response objects are initialized, as is the Page.IsPostBack property.

Page Initialization

  • Controls are initialized.
  • Postback data has NOT been loaded.
  • Control properties have NOT been set from viewstate.

Load

  • If a postback, control properties are loaded from viewstate.

Validation

  • Each validator is called, setting the IsValid property of each and of the page.

Postback Event Handling

  • Postback event handlers are called

Rendering

  • Viewstate is saved
  • The Page.Render method is called
  • The page is sent to the client

Unload

  • Response and Request objects are unloaded.
  • Cleanup is performed.

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.