HttpApplication Class
Defines the methods, properties, and events common to all application objects within an ASP.NET application. This class is the base class for applications defined by the user in the global.asax file.
For a list of all members of this type, see HttpApplication Members.
System.Object
System.Web.HttpApplication
[Visual Basic] Public Class HttpApplication Implements IHttpAsyncHandler, IHttpHandler, IComponent, _ IDisposable [C#] public class HttpApplication : IHttpAsyncHandler, IHttpHandler, IComponent, IDisposable [C++] public __gc class HttpApplication : public IHttpAsyncHandler, IHttpHandler, IComponent, IDisposable [JScript] public class HttpApplication implements IHttpAsyncHandler, IHttpHandler, IComponent, IDisposable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
Instances of this class are created in the ASP.NET infrastructure, not by the user directly. One instance is used to process many requests in its lifetime but it can process only one at a time. Thus member variables can be used to store per-request data.
An application executes events that are handled by modules or user code defined in the global.asax file in the following sequence:
BeginRequest
AuthenticateRequest
AuthorizeRequest
ResolveRequestCache
[A handler (a page corresponding to the request URL) is created at this point.]
AcquireRequestState
PreRequestHandlerExecute
[The handler is executed.]
PostRequestHandlerExecute
ReleaseRequestState
[Response filters, if any, filter the output.]
UpdateRequestCache
EndRequest
Requirements
Namespace: System.Web
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Web (in System.Web.dll)