Validating User Input in an ASP.NET Web Page
In ASP.NET, input validation is performed through the use of—you guessed it—Web controls. The Web controls that perform input validation are commonly called validation Web controls or just validation controls.
There are four kinds of validation controls we'll be examining in this hour. Each of these Web controls, as summarized in Table 12.1, is geared for providing one or more of the input validation classes we've just been discussing.
|RequiredFieldValidator||Ensures that data has been entered into a specific input|
|CompareValidator||Ensures that a numeric value in one input is less than, less than or equal, equal, greater than, ...|