473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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 6363
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Guess | last post by:
I have seen examples that seem to indicate that if we extend a validator, the extended properties must be preserved in ViewState. That seems unnessary to me since we usually will declare the...
0
by: Sjaakie Helderhorst | last post by:
Hi, Somehow pushing an image-button doesn't trigger the CompareValidator, resulting in errors when entering string characters. Could someone please tell me what I did wrong? Thanks in advance!...
1
by: Keith Spitz | last post by:
The following works... <asp:CompareValidator Runat="server" ControlToValidate="txtValue" Text="*" ErrorMessage="The value you provided is not of the correct type." Operator="DataTypeCheck"...
2
by: Eric Maia | last post by:
I have a textbox (StartDateTextBox) in a UserControl on my page, that is supposed to have a date entered into it. I have a RequiredFieldValidator that has its ControlToValidate property set to the...
2
by: Jim Lambert | last post by:
I have a form with custom controls. Each custom control contains a TextBox. When I attempt to dynamically add a CompareValidator to a TextBox which compares to a TextBox within the other custom...
1
by: tshad | last post by:
The CompareValidator doesn't seem to work correctly. I have the following to compare 2 controls that are Currency and no matter what I enter, it seems to give me an error. I saw in the MSDN that...
2
by: tshad | last post by:
I am trying to check the date of my field to check if it is greater that today, but I am getting an error. I am using : <asp:CompareValidator runat="server"...
1
by: R.A.M. | last post by:
Hello, (Sorry for my English...) Could you help me please? I have a problem with CompareValidator control which makes the load of my page infinitive. Here's the code: Date of birth:...
1
by: R.A.M. | last post by:
Hello, I am learning ASP.NET 2.0 and I have a problem with CompareValidator control. On .aspx page I have a control: Date of birth: <asp:TextBox ID="BirthDate" runat="server"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.