Export (0) Print
Expand All

Application Directives

Application directives specify optional settings used by the ASP.NET page and application compilers when processing ASP.NET files. Application directives are located at the top of the Global.asax file. The syntax for an application directive is as follows.

<%@ directive attribute=value [attribute=value  ]%>

Each directive may contain one or more attribute/value pairs specific to that directive. The following table shows the application directives supported in ASP.NET.

@ Application Defines application-specific attributes used by the ASP.NET application compiler.
@ Import Explicitly imports a namespace into an application.
@ Assembly Links an assembly to the application at parse time.

See Also

Global.asax Syntax

© 2015 Microsoft