A Look at the Remaining Validation Controls


In addition to the four validation controls we examined in this hour, there are two additional validation controls. The first is the CustomValidator, which is, as its name implies, a validation control that is customizable. The CustomValidator can be used to validate user input in a way that is not handled by one of the four validation controls we've looked at.

However, in my experience, rarely will you find that you need to use a CustomValidator. More often than not, one of the main four validation controls will suffice. If, however, you find that you do need the power of a CustomValidator, I encourage you to read "Using the CustomValidator Control" at http://aspnet.4guysfromrolla.com/articles/073102-1.aspx.

The other validation control is the ValidationSummary control. The ValidationSummary control lists the ErrorMessage properties for all of the validation controls on a web page that have indicated invalid user input data.

By the Way

To learn more about the ValidationSummary control, refer to http://www.w3schools.com/aspnet/control_validationsummary.asp.





Sams Teach Yourself ASP. NET 2.0 in 24 Hours, Complete Starter Kit
Sams Teach Yourself ASP.NET 2.0 in 24 Hours, Complete Starter Kit
ISBN: 0672327384
EAN: 2147483647
Year: 2004
Pages: 233

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net