Saturday, May 27


Components of ASP.NET:

  1. Common Language Runtime (CLR)
  2. .NET Framework Class Library
  3. Common Language Specifications
  4. Common Type System
  5. Metadata and Assemblies
    1. Metadata is the binary information describing the program which is either stored in a PE file or in memory. Assembly is a logical unit consisting of the assembly manifest, type metadata, IL code, and resources such as images.
  6. Windows and Forms
    1. AJAX allows page updates without reloading
  8. ADO.NET
    1. Access to databases and XML
  9. Windows Workflow Foundation (WF)
  10. Windows Presentation Foundation (WPF)
  11. Windows Communication Foundation (WCF)
  12. Windows Cardspace
  13. LINQ
ASP.NET Life Cycle specifies how:
  • ASP.NET processes pages to produce dynamic output
  • The application and its pages are instantiated and processed.
  • ASP.NET compiles the page dynamically
Life cycle can be divided into two groups:

  1. Application Life Cycle
  2. Page Life Cycle
Application Life Cycle
The application life cycle has the following states:
  • The user makes a request for accessing application resource, a page, Browser sends the request to the web server.
  • A unified pipeline receives the first request and the following events take place:
    • An object of class ApplicationManager is created.
    • An object of class HostingEnvironment is created.
    • Top level items in the application are compiled.
  • Response object are created:
    • HttpContext
    • HttpRequest
    • HttpResponse
  • An instance of HttpApplication is created and assigned to the request.
  • The request is processed by the application class. Events are parsed.
ASP.NET Page Life Cycle Phases:
  • Initialization
  • Instantiation
  • Restoration and maintenance of the state
  • Execution of the event handler codes
  • Page Rendering


  • Page Request
  • Starting of the page lifecycle
  • Page initialization
  • Page load
  • Validation
  • Postback event handling
  • Page Rendering
  • Unload
  • PreInit - overload OnPreInit
  • Init - overload OnInit
  • InitComplete
  • Load ViewState
  • Load PostData
  • PreLoad - overload OnPreLoad
  • Load - overload OnLoad
  • LoadComplete - overload OnLoadComplete
  • PreRender
  • PreRender Complete
  • SaveState Complete - override Render
  • Unload