Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET Reference Directive Attributes

ASP.NET reference directive is used to set reference of another assembly into aps.net page.

Syntax

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

Reference Directive Attributes

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

ASP.NET Reference Directive Attributes Example C#

<%@ Reference VirtualPath="~/control/muControl.ascx" %>

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary