Creates a new instance of the CompareValidator class.
This constructor is not called directly. Validation controls that inherit from this class can call this constructor from their own constructors to initialize the base properties.
The following table shows initial property values for an instance of BaseValidator.
| Property | Initial Value |
|---|---|
| IsValid | true |
| ForeColor | Color.Red |
CompareValidator Class | BasicFrame.WebControls Namespace | CompareValidator | CustomValidator | DifferenceValidator | RangeValidator | RegularExpressionValidator | RequiredFieldValidator