asp.net_directives
asp.net_directives
NET - DIRECTIVES
http://www.tutorialspoint.com/asp.net/asp.net_directives.htm Copyright © tutorialspoint.com
ASP.NET directives are instructions to specify optional settings, such as registering a custom
control and page language. These settings describe how the web forms . aspx or user controls . ascx
pages are processed by the .Net framework.
In this section, we will just introduce the ASP.NET directives and we will use most of these directives
throughout the tutorials.
Attributes Description
Attributes Description
Src The path to the source file to be linked and compiled dynamically.
Attributes Description
Debug The Boolean value that enables or disables compiling with debug
symbols.
EnableViewState The Boolean value that indicates whether view state is maintained
across page requests.
Explicit For VB language, tells the compiler to use option explicit mode.
Strict For VB language, tells the compiler to use the option strict mode.
Attributes Description
AutoEventWireup The Boolean value that enables or disables page events that are
being automatically bound to methods; for example, Page_Load.
ClientTarget The browser for which the server controls should render content.
EnableViewState The Boolean value that enables or disables view state across page
requests.
TraceMode It indicates how trace messages are displayed, and sorted by time
or category.
ValidateRequest The Boolean value that indicates whether all input data is
validated against a hardcoded list of values.
The PreviousPageType Directive
The PreviousPageType directive assigns a class to a page, so that the page is strongly typed.