Team LiB
Previous Section Next Section

Common ASP.NET Events

All of the ASP.NET events are stored in the global.aspx file. When you modify this file, the application will automatically restart. Table 23-3 lists the common ASP.NET events.

Table 23-3: Common ASP.NET Events

Event

Description

Application_AuthenticationRequest

Raised before authenticating a user

Application_AuthorizeRequest

Raised before authorizing a user

Application_BeginRequest

Raised by every request to the server

Application_End

Raised before the end of all application instances

Application_EndRequest

Raised at the end of every request to the server

Application_Error

Raised when an unhandled error occurs

Application_PreSendRequestContent

Raised before sending data/content to the browser

Application_PreSendRequestHeaders

Raised before sending headers to the browser

Application_Start

Raised when the first application is started (occurs only once)

Dispose

Raised before the end of an application

Init

Raised after an application instance is created


Team LiB
Previous Section Next Section