473,394 Members | 1,724 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,394 software developers and data experts.

compare validator

comparing two textboxes for equality
email address
and
confirm email address

once the email address textbox has been filled in,
then you switch to the confirm email address textbox, but before you get a
chance to type the confirmation,

the validator fires off "both email addresses must match

this is weird.
what can be done
Mar 7 '07 #1
2 1414
Don't use the client-side validation. The client-side validation will fire
whenever the focus is changed off one of the text boxes. There isn't any way
to alter this behavior as the script doesn't know which is the first time
you've given focus to a control and which isn't. If you set the client-side
validation to false it will use the server-side validation instead, which
will only check for validity when the page is in postback instead of as the
user tabs around the form.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Mr. SweatyFinger" <sw@sw1finger.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
comparing two textboxes for equality
email address
and
confirm email address

once the email address textbox has been filled in,
then you switch to the confirm email address textbox, but before you get a
chance to type the confirmation,

the validator fires off "both email addresses must match

this is weird.
what can be done

Mar 7 '07 #2
yet if i use server-side validation only, and if my page has a file upload
or two, then that file upload stuff will be lost if the page is submitted,
and this stuff doesn;t validate, right?

the stuff will have to be re uploaded.
right?

Mar 7 '07 #3

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

Similar topics

0
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 =...
1
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...
0
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...
3
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...
4
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 “MM/dd/yyyy” but not for “MM/dd/yyyy hh:mm:ss”. How can I validate time part too? Thanks,
3
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...
0
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...
0
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...
1
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. ...
2
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.