The validation controls are found in the System.Web.UI.WebControls namespace and inherit from the BaseValidator class. This class defines the basic functionality for a validation control. Table 10-2 describes its key properties.
|ControlToValidate||Identifies the control that this validator will check. Each validator can verify the value in one input control. However, it's perfectly reasonable to "stack" validators—in other words, attach several validators to one input control to perform more than one type of error checking.|
|ErrorMessage and ForeColor||If validation fails, the validator control can display a text message (set by the ErrorMessage property). ...|