CompareValidator.Operator Property
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] public: property ValidationCompareOperator Operator { ValidationCompareOperator get (); void set (ValidationCompareOperator value); }
/** @property */ public ValidationCompareOperator get_Operator () /** @property */ public void set_Operator (ValidationCompareOperator value)
public function get Operator () : ValidationCompareOperator public function set Operator (value : ValidationCompareOperator)
Property Value
One of the ValidationCompareOperator values. The default value is Equal.Use the Operator property to specify the comparison operation to perform. The following table lists the comparison operations that are possible.
| Operation | Description | ||
|---|---|---|---|
| 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.
|
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note