Summary

only for RuBoard

Using validation controls is a very quick, easy, and dependable way to validate data. ASP.NET offers you some very good stock validation controls you can use, and also enables you to create your own custom validation controls. Using these controls not only saves you development time, but also is a very clean way to implement data validation. In this chapter, you learned how to use the following validation controls:

  • What are validation controls and how do they work?

  • Using the RequiredFieldValidator control

  • Using the CompareValidator control

  • Using the RangeValidator control

  • Using the RegularExpressionValidator control

  • Using the CustomValidator control

  • Displaying error information using the ValidationSummary control

  • Multiple validator controls on one input control

I have one final suggestion for you. To really learn the power of these validation controls, play around with all of them ”change attributes, apply the different styles, and try implementing multiple validation controls on single input controls. Try to hack them before you go live with them, because, if you can find a loophole in your validation process, I can guarantee that someone else will also!

only for RuBoard


Programming Data-Driven Web Applications with ASP. NET
Programming Data-Driven Web Applications with ASP.NET
ISBN: 0672321068
EAN: 2147483647
Year: 2000
Pages: 170

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