Home
Technical Training
ASP.NET Training
ASP .NET: Validating User Input with C#
Required Field Validator
Regular Expression Validator
Range Validator
Compare Validator
Custom Validator
Validation Summary Control
This tutorial is part of a ASP.NET Training tutorial series. Read it from the beginning and learn yourself.
Technical Training
ASP.NET TrainingTable of Contents
ASP .NET: Validating User Input with C#
Required Field Validator
Regular Expression Validator
Range Validator
Compare Validator
Custom Validator
Validation Summary ControlRegular 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.
Read Next: Using Rich Server Controls with C#
ASP.NET Training
- ASP.NET with C# Training Launch
- ASP.NET with C# Training Course Outline
- Introduction to ASP.NET with C#
- ASP.NET Web Forms Controls
- ASP .NET: Validating User Input with C#
- Using Rich Server Controls with C#
- Accessing Data with C#
- ASP.NET Using the DataList and Repeater, Datagrid Controls
- Managing Data with ADO.NET DataSets and C#
- Creating and consuming XML Web Services with C#
- ASP .NET Migration and Interoperability
- Managing State with ASP.NET and C#
- Caching in ASP.NET
- Configuring and Deploying ASP.NET Applications
- Securing ASP.NET Applications with C#







