asp.net.ph

Skip Navigation Links

Application Directives

ASP.NET Syntax   Global.asax Syntax


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.

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

Each directive may contain one or more attribute/value pairs specific to that directive. The following directives are supported:

@ 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

ASP.NET Applications



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note