Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET Assembly Directive Attributes

ASP.NET Assembly directive is used to include assembly at page-specific (.aspx file) and used by the ASP.NET page parser and compiler.

Syntax

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

Assembly Directive Attributes

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

ASP.NET Assembly Directive Attributes Example C#

<%@ Assembly Name="myAssembly" %>
<%@ Assembly Src="myAssembly.cs" %>
<%@ Assembly Src="myAssembly.vb" %>

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary