469,578 Members | 1,863 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

CompareValidator - ControlToCompare and ControlToValidate

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.

Nov 17 '05 #1
1 6203
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

--
Neno Loje [MVP C#]
http://www.dotnet-online.com
"edi" <ed******@abv.bg> schrieb im Newsbeitrag
news:11**********************@z14g2000cwz.googlegr oups.com...
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.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sjaakie Helderhorst | last post: by
2 posts views Thread by Jim Lambert | last post: by
1 post views Thread by tshad | last post: by
2 posts views Thread by tshad | last post: by
1 post views Thread by R.A.M. | last post: by
1 post views Thread by R.A.M. | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.