Directives


DirectiveDescription
@ AssemblyLinks an assembly to the current page or user control declaratively.
@ ControlDefines control-specific attributes used by the ASP.NET page parser and compiler and can be included only in .ascx files (user controls).
@ ImplementsIndicates that a page or user control implements a specified .NET Framework interface declaratively.
@ ImportImports a namespace into a page or user control explicitly.
@ MasterIdentifies a page as a master page and defines attributes used by the ASP.NET page parser and compiler and can be included only in .master files.
@ MasterTypeDefines the class or virtual path used to type the Master property of a page.
@ OutputCacheControls the output caching policies of a page or user control declaratively.
@ PageDefines page-specific attributes used by the ASP.NET page parser and compiler and can be included only in .aspx files.
@ PreviousPageTypeCreates a strongly typed reference to the source page from the target of a cross-page posting.
@ ReferenceLinks a page, user control, or COM control to the current page or user control declaratively.
@ RegisterAssociates aliases with namespaces and classes, which allow user controls and custom server controls to be rendered when included in a requested page or user control.

 --------------------------------------------------------------------------------------------------------------------------


@ Page Defines page-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .aspx files.
@ Control Defines control-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .ascx files (user controls).
@ Import Explicitly imports a namespace into a page or user control.
@ Implements Declaratively indicates that a page or user control implements a specified .NET Framework interface.
@ Register Associates aliases with namespaces and class names, thereby allowing user controls and custom server controls to be rendered when included in a requested page or user control.
@ Assembly Declaratively links an assembly to the current page or user control.
@ OutputCache Declaratively controls the output caching policies of a page or user control.
@ Reference Declaratively links a page or user control to the current page or user control.