Name
HttpApplication
Synopsis
HttpApplication is the default base
class from which your web application derives. This class is most notable
for the application-level events it provides. You can
code event handlers that react to global application events in the
global.asax file. If you use Visual Studio .NET
to create a code-behind class (like global.asax.vb), the event
handler code will be created in a class called Global, which
inherits from HttpApplication. Note that the application
event handlers are not connected with a Handles keyword or AddHandler() statement. Instead, they are recognized by their
method names, which must match the event name and be preceded by “Application_” (as in Application_AuthenticateRequest or Application_EndRequest).
The first time a user navigates to a page in your
application, the ASP.NET engine creates a pool of HttpApplication objects. Whenever your
application receives a request, the ASP.NET engine automatically
assigns one of these HttpApplication
instances to serve the request. This HttpApplication
instance will be reused, but only once the
request is complete.
Public Class HttpApplication : Implements IHttpAsyncHandler, IHttpHandler, System.ComponentModel.IComponent,_ IDisposable ' Public Constructors Public Sub New() ' Public Instance Properties Public ReadOnly Property Application As HttpApplicationState Public ReadOnly Property Context As HttpContext Public ReadOnly Property Modules As HttpModuleCollection Public ReadOnly Property Request ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access