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!
18.116.62.168