Structure of ASP. NET pages

Source: Internet
Author: User

Structure of ASP. NET pages

I. Page instructions:
Including @ assembly Program Set to connect to the current page or user control ),
@ Control (. ascx, defines control-related attributes that guide the behavior of the control compiler ),
@ Implements (this page or the user control implements a specified. NET Framework Interface ),
@ Import (meaning the namespace of the page or user control to be imported ),
@ Ouputcache (control page or user control output buffer policy ),
@ Page (. aspx, defines page-related attributes that will guide the page compiler and language parser operations on the page ),
@ Reference (connecting a page or user control to the current page or user control ),
@ Register (create a custom tag in a page or control, and add a new tag (prefix and name) to the namespace and Code Associated)
Ii. Code:
That is, the <scirpt> section contains all the declared code of the page, such as the Code of the interface method, system events, and all the code executed when the page control is clicked or the status changes.
<SCRIPT runat = "server/..." Language = "..." src = "...">
Code goes here...
</SCRIPT>
3. Page Layout:
It represents the page pattern, including server controls, text bodies, and HTML tags. The user interface of the server control can be filled with Inline code or declaration code.

Reference: programming Microsoft ASP. NET [DINO Esposito]/proficient in ASP. NET Programming [Luo Bing and other translations]

 

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.