Directives specify optional settings used by the page compiler when processing ASP+ files. They may be located anywhere within a page 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:
@ Page | Defines page-specific attributes used by the ASP+ page parser and compiler. |
@ Import | Explicitly imports a namespace into a page. |
@ Register | Associates aliases with namespaces and class names for concise notation in Custom Server Control Syntax. |
@ Assembly | Declaratively links a assembly against the current page. |
@ OutputCache | Declaratively controls the output caching policies of a page. |
Remarks
Any directive block (<%@ %>) that does not contain an explicit directive name will be treated as an implicit Page directive.
See Also
ASP+ Page Syntax