The compare constraint provides the functionality of the ASP.NET Compare
Validator to the MForm items.
The compare constraint allows comparing the item's value to a fixed
value or to a value of a different MForm item.
The compare constraint control has the following properties:
Type - the comparison data type, an analogue of the CompareValidator.Type
property
ValueToCompare - a fixed value the item is to be compared to, an analogue
of the CompareValiator.ValueToCompare property.
ItemToComparePath - an xpath-like path to the item, whose value will
be used for comparison (if both the ValueToCompare property and the
ItemToComparePath property are set, the latter takes precedence)
Operator - the comparison operator: equal, not equal, greater than,
greater than or equal, less than, less than or equal; an analogue of the CompareValidator.Operator
property
The compare constraint performs the validation by invoking both client
and server side CompareValidator's validation methods. Thereby the
behavior of this constraint should maximally resemble the behavior of the CompareValidator.