Web Tutorials

Interview Q & A

Code Examples

Utility Tools

ASP.NET Register Directive Attributes

ASP.NET Register Directive is used to register and use user control in aps.net page.

Syntax

Register Directive Attributes

AttributesDescription
AssemblySpecifies the assembly you want to associating with the TagPrefix.
NamespaceSpecifies the namespace to relate with TagPrefix.
SrcSpecifies the user control.
TagNameSpecifies alias name to relate to your class name.
TagPrefixSpecifies alias name to relate to the namespace.

ASP.NET Register Directive Attributes User Control Example

ASP.NET Register Directive Attributes Example C#

ASP.NET Register Directive Attributes Example VB

RequiredFieldValidator

RegularExpressionValidator

RangValidator

CompareValidator

CustomValidator

ValidationSummary