Documentation for this section has not yet been entered.
Use the CompareValidator.Operator property to specify the comparison operation to perform. The following table lists the comparison operations that are possible.
Equal |
A comparison for equality between the values of the input control being validated and another control, or a constant value. |
NotEqual |
A comparison for inequality between the values of the input control being validated and another control, or a constant value. |
GreaterThan |
A comparison for greater than between the values of the input control being validated and another control, or a constant value. |
GreaterThanEqual |
A comparison for greater than or equal to between the values of the input control being validated and another control, or a constant value. |
LessThan |
A comparison for less than between the values of the input control being validated and another control, or a constant value. |
LessThanEqual |
A comparison for less than or equal to between the values of the input control being validated and another control, or a constant value. |
DataTypeCheck |
A data type comparison of the value entered in the input control being validated and the data type specified by the BaseCompareValidator.Type property. Validation fails if the value cannot be converted to the specified data type. The CompareValidator.ControlToCompare and CompareValidator.ValueToCompare properties are ignored when this operator is used. |
This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.