What is ASP.NET Master directive - Directives And how to use

What is ASP.NET Master directive - Directives And how to use:

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.

The syntax for declaring a directive is:

<%@  directive_name attribute=value  [attribute=value]  %>
In this section, we will just introduce the ASP.NET directives and we will use most of these directives throughout the tutorials.

The Master Directive

The Master directive specifies a page file as being the mater page.

The basic syntax of sample MasterPage directive is:

<%@ MasterPage Language="C#"  AutoEventWireup="true"  CodeFile="SiteMater.master.cs

Some Others Are 


IMPORT DIRECTIVE

MASTER DIRECTIVE

MASTERTYPE DIRECTIVE

OUTPUTCACHE DIRECTIVE

PAGE DIRECTIVE

PREVIOUSPAGETYPE DIRECTIVE

REFERENCE DIRECTIVE

REGISTER DIRECTIVE

Comments