O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ASP.NET Validation Controls

ASP.NET offers more validation controls than the one we have already talked about, the RequiredFieldValidator. It also offers the ValidationSummary, the CompareValidator, the RangeValidator, the RegularExpressionValidator, and the CustomValidator controls. The ValidationSummary control is used to display a summary of all the ErrorMessages on a given form. So, if you want to somehow summarize for the user the data validation errors that have occurred in a form, you could use the ValidationSummary control. The CompareValidator control is used to compare the value of a field to another field. The RangeValidator is used to verify that the field value falls within a given range. For example, if you are asking a user for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required