What are page directives? The first line of an ASP.NET page is the page directive; you will find it on all ASP.NET pages. These directives are instructions for the page. It begins with the @Page directive and continues with the various attributes available to this directive. It's unreasonable to expect a candidate to know all of these attributes, but a few popular ones include the following. AutoEventWireup: Indicates whether page events are autowired. CodeBehind: The name of the compiled class associated with the page. Debug: Indicates whether the page is compiled in debug mode (includes debug symbols). EnableTheming: Indicates whether themes are used on the page. EnableViewState: Indicates whether view state is maintained across pages. ErrorPage: Specifies a target URL to be used when unhandled exceptions occur. Language: Indicates the language used when compiling inline code on the page. Trace: Signals whether tracing is ...
A Blog For Passionate Dot net Developers