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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top