Exforsys

Home arrow Technical Training arrow ASP.NET Training

Regular Expression Validator

Page 3 of 7
Author : Exforsys Inc.     Published on: 4th Mar 2005    |   Last Updated on: 18th Dec 2010

ASP .NET: Validating User Input with C#

Regular Expression Validator is used to check the user input against some built in regular expressions. The control provides the RegularExpression collection property that can be used to select the desired Regular Expression. Some of the built in expressions are Email, postal code, US telephone number and many more.

Ads
If the user input does not match the regular expression expected an error will occur and the request for the resources will not be authorized unless the user corrects the input data.

Apart from the regular expressions that ship with the Microsoft.net framework you can also make your own regular expressions using the using System.Text.RegularExpressions; namespace.



 
This tutorial is part of a ASP.NET Training tutorial series. Read it from the beginning and learn yourself.

ASP.NET Training

 

Comments