Web commands of ASP. net4

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.