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:
- Raises the
BeginRequest
event - Raises the
AuthenticateRequest
event - Raises the
AuthorizeRequest
event - Calls the
ProcessRequest()
method of thePage
class - 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.