473,795 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compare Validator

A.M
Hi,

Can I use compare validator to make sure that the value of two text boxes
are the same?

Thanks,
Alan
Nov 18 '05 #1
3 1762
Yes.

--
Saludos,

Jose Luis Manners, MCP

"A.M" <no*****@online .nospam> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi,

Can I use compare validator to make sure that the value of two text boxes
are the same?

Thanks,
Alan

Nov 18 '05 #2
A.M

How?
The ValueToCompare property accepts a value. How can I refer it to text
property of another textbox?

Thanks for reply
Alan
"Jose Luis Manners" <jlmanners(-arroba-)acm.org> wrote in message
news:ew******** ******@TK2MSFTN GP11.phx.gbl...
Yes.

--
Saludos,

Jose Luis Manners, MCP

"A.M" <no*****@online .nospam> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi,

Can I use compare validator to make sure that the value of two text boxes are the same?

Thanks,
Alan


Nov 18 '05 #3
Neo
If you want to compare a specific input control with another input control,
set the ControlToCompar e property to specify the control to compare with.
"A.M" <no*****@online .nospam> 写入消息新闻
:ON************ **@TK2MSFTNGP11 .phx.gbl...

How?
The ValueToCompare property accepts a value. How can I refer it to text
property of another textbox?

Thanks for reply
Alan
"Jose Luis Manners" <jlmanners(-arroba-)acm.org> wrote in message
news:ew******** ******@TK2MSFTN GP11.phx.gbl...
Yes.

--
Saludos,

Jose Luis Manners, MCP

"A.M" <no*****@online .nospam> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi,

Can I use compare validator to make sure that the value of two text boxes are the same?

Thanks,
Alan




Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1229
by: Dave Bailey via DotNetMonster.com | last post by:
I am using a compare validator with the following code: private void CheckRom() { if (romCheck.Checked == true && romFromText.Text != null && romToText.Text != null) { romCompare.Enabled = true; romCompare.ControlToCompare = romFromText.Text; romCompare.ControlToValidate = romToText.Text;
1
554
by: dotnet beginner | last post by:
In my webform I check for dirty(textbox values changed), and pop up a confirm dialog box on an asp-Imagebutton click event. I wrote a javascript function (to pop up confirm box) and called it in the pageload event using: btnclick.attributes.add("onclick", "return popConfirm();") So far everything works absolutely fine. Then I added a compare validator to one of the fields in my form. Now, when the form is dirty (has the values in
0
1629
by: TN Bella | last post by:
Hi, I am trying to get my compare validator to fire properly...Since I have panels the validator wouldn't work properly, the app would fire right but would insert the data regardless and the user couldn't fix an error if they had an error. So I added another sub and fixed the panels, but the compare validator still doesn't work right. Right now the validator pops up with the error that the two values (txtAcctAmtSum and txtInvAmt) are...
3
2188
by: Sandy | last post by:
Hi All! I have a password textbox and a verify password textbox. I threw in the compare validator to make sure both values agree. I noticed, however, that immediately the compare validator displays the error message before all the typing is completed in the "verify password" textbox. How do I get the compare to fire only when a person has completed the textbox? -- Sandy
4
6143
by: JIM.H. | last post by:
Hello, I put a compare validator in to my applications and set the type as Date. It works for 鈥淢M/dd/yyyy鈥 but not for 鈥淢M/dd/yyyy hh:mm:ss鈥. How can I validate time part too? Thanks,
3
1950
by: thomson | last post by:
Hi, I have 5 aspx pages, In one page i have a Compare Validator Control, The four aspx pages are loading fast with similar controls, no code behind, But the page having Compare Validator Control is taking time, Any insights to this? Thanks in Advance thomson
0
1407
by: David Hearn | last post by:
I have a user control that I created that I use in one page right now. It has a textbox in it that is used to enter a date. I am using a compare validator to validate the date format which works fine if you enter a date and then use the tab key to leave the control. The problem is that it should also be firing if the date is not correctly formatted when the user clicks on a button that is in the parent page. The button has the...
0
766
by: guy | last post by:
I have a simple web form that has 2 password fields, and a compare validator that checks that both are the same - standard stuff. however if nothing is entered in the second password box the compare validator does not show the error, it works ok if there is data though the fix is to put required field validators on both fields, but why is this neccesary?
1
2324
by: vrparekh | last post by:
in my webapplication,user pick date in dd/mm/yy format, and i want to compare that date with another date using compare validator but compare validator compare the dates using mm/dd/yy format. is there any way to change the format of date,used by compare validator.?? vishal parekh
2
3349
by: bogdan | last post by:
Is it possible to have a CompareValidator to compare values from two cells in a gridview row? I'd like to do that while in edit mode. Thanks, Bogdan
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10448
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10167
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.