Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET MasterType Directive Attributes

ASP.NET MasterType directive is defined for page specific (.aspx file) and used by the ASP.NET page parser and compiler.

Syntax

<%@ MasterType attribute="value" [attribute="value"...] %>   

ASP.NET MasterType Directive Attributes

AttributesDescription
TagNameSpecifies the name of the derived class.
VirtualPathSpecifies the location of the posting page.

ASP.NET MasterType Directive Attributes Example C#

<%@ MasterType VirtualPath="~/master/SourcePage.master" %>

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary