CompareValidator - ControlToCompare and ControlToValidate

  • Thread starter Thread starter edi
  • Start date Start date
E

edi

Hi,

Are there any differences between CompareValidator.ControlToCompare and
CompareValidator.ControlToValidate?
For example if I have TextBox controls: TextBox1 and TextBox2 what are
the differences between: CompareValidator.ControlToCompare=TextBox1,
CompareValidator.ControlToValidate=TextBox2
and
CompareValidator.ControlToValidate=TextBox1,
CompareValidator.ControlToCompare=TextBox2?

Thanks.
 
Hello edi, (<-- please use full name in future posts)

the Operator assumes that ControlToValidate is the first and
ControlToCompare the second control. So if you use the operator GreaterThan
it will validated as ControlToValidate > ControlToCompare.

Regards,
Neno
 
Back
Top