Sunday, August 31, 2008

CompareValidator Control

CompareValidator Control

->The CompareValidator control performs its validation by using comparison operators such as greater than and less than to compare the data with a constant or a value in a different control. In addition, the CompareValidator can verify that the data is of a certain type, such as a date.

->The ValueToCompare property can be set to a constant that is used to perform the comparison.

->The Operator property defines how to perform the comparison and can be set to Equal, NotEqual, GreaterThan, GreaterThanEqual, LessThan, LessThanEqual, or DataTypeCheck.

->The ControlToCompare property can be set to a control that is used to perform the comparison.

->This property takes precedence if this property and the ValueToCompare properties are both set.

No comments: