ASP.NET Page Structure
You are now in a position to examine the formal structure of an ASP.NET page. The following is a list of the important elements of an ASP.NET page: * Directives * Code declaration blocks * ASP.NET controls * Code render blocks * Server-side comments * Server-side include directives * Literal text and HTML tags Each element is discussed in the following sections. Directives A directive controls how an ASP.NET page is compiled. The beginning of a directive is marked with the characters . A directive can appear anywhere within a page. By convention, however, a directive typically appears at the top of an ASP.NET page. There are several types of directives that you can add to an ASP.NET page. Two of the most useful types are page and import directives. Page Directives You can use a page directive to specify the default programming language for a page. Page directives can also be used to enable tracing and debugging for a page. To change the default programming l...