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]