Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET PreviousPageType Directive Attributes

ASP.NET PreviousPageType attributes is used at page level (.aspx file) which is used by page parser and compiler.

Syntax

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

PreviousPageType Directive Attributes

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

ASP.NET PreviousPageType Directive Attributes Example C#

<%@ PreviousPageType VirtualPath="~/SourcePage.aspx" %>

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary