BaseCompareValidator::Compare Method
.NET Framework (current version)
Compares two strings using the specified operator and validation data type.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Compare(String^, Boolean, String^, Boolean, ValidationCompareOperator, ValidationDataType) | Compares two strings using the specified operator and validation data type. This version of the overload allows you to specify whether values are compared using a culture-neutral format. |
![]() ![]() | Compare(String^, String^, ValidationCompareOperator, ValidationDataType) | Compares two strings using the specified operator and data type. This version of the overloaded method compares currency, double, and date values using the format used by the current culture. |
Show:

