Working with HTTP Applications and HTTP Modules

Whenever you request an ASP.NET page, ASP.NET Framework assigns an instance of the HttpApplication class to the request. This class performs the following actions in the following order:

  1. Raises the BeginRequest event
  2. Raises the AuthenticateRequest event
  3. Raises the AuthorizeRequest event
  4. Calls the ProcessRequest() method of the Page class
  5. Raises the EndRequest event

Note

This is not a complete list of HttpApplication events. There are a lot of them!

The entire page execution lifecycle happens during the fourth step. For example, the Page Init, Load, and PreRender events all happen when the Page class ProcessRequest() method is called. The HttpApplication object is responsible for raising application ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.