@ Application — Global.asax
Defines application-specific attributes used by the ASP.NET application compiler. The syntax for the @ Application directive is as follows.
<%@ Application attribute="value" [attribute=value ]%>
Attributes
- Description
A text description of the application. This value is ignored by the ASP.NET parser and compiler. - Inherits
The name of the class to extend. Defines a code-behind class for the application to inherit. This can be any class derived from the HttpApplication class.
Remarks
The Description and Inherits attributes can be declared together in the same @ Application directive, as shown in the example below.
Example
The following code instructs the ASP.NET application compiler to dynamically compile a new application class that extends the My401kApp.Object
class.
<%@ Application Inherits="My401kApp.Object" Description="Our 401k app" %>