Instructions
In ASP. NET, the name of the specified command is not displayed, for example, <% @ %>. In this case, a page is considered as the @ page command, and a user control is considered as the @ control command for processing.
Introduction to ASP. NET commands
@ Assembly
Link the assembly to the current page or user control in a declarative manner.
@ Control
Define the specific features of the controls used by ASP. NET page analyzer and compiler. They can only be included in the. ascx file (user control.
@ Implements
It indicates that the page or user control implements the specified. NET Framework interface in declarative form.
@ Import
Explicitly import a namespace to a page or user control.
@ Master
Identifies a page as a master page and defines the features used by ASP. NET page analyzer and compiler. It can only be included in the. master file.
@ Mastertype
Defines the class or virtual directory used to determine the master attribute type of the page.
@ Outputcache
Control the output Cache Policy of pages or user controls in declarative mode.
@ Page
Defines the page-specific features used by ASP. NET page analyzer and compiler. They can only be included in the. aspx file.
@ Previouspagetype
Create a strongly typed reference that points to the Source Page of the target sent across pages.
@ Reference
Link a page, user control, or COM control to the current page or user control in a declarative manner.
@ Register
Associate aliases with namespaces and classes so that they can be displayed when user controls and custom server controls are incorporated into the request page or user control.