Creating a Custom Validator Control in .Net
The ASP .Net has its own form validation framework. This framework consists of: Base Validation Class, the BaseValidator ASP Validation Controls A Clientside Validation JavaScript Framework The "Base Validation Class" is the base of all validation controls and is also used to create own custom controls. If you want to create your own validation control, you have to inherit from the base class. The ASP validation controls are basic validation controls provided by Microsoft. These are: RequiredFieldControl : Checks an input field if its empty CompareValidator : Compares the value of a field with another value. This can be a value in another field or a constant value. RangeValidator : Checks if the value in a form field is within a range RegularExpressionValidator : RegularExpression validators are used to check if the value in a control matches a pattern defined by the regular expression. CustomValidator : If none of the Validators are useful for a purpose, you c...