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

Validator/Textbox/Label Bug

I have a textbox to enter an email address followed by a password
textbox. The email has a regularexpressionvalidator and a
requiredfieldvalidator. The ReqField works fine, but if I put in an
invalid email addy then click in the password field below, something
very odd happens.

The password label & textbox (and all controls below) shift down one
line, and rather than having my cursor in the password textbox. The
cursor is IN the label. I can now type in text in the LABEL.. I can
also backspace out the text in the label AND continue backspacing and
elminate the email textbox, the email label and the controls above
(limited by the TD cell these items are in).

If I use the tab button to move from the incorrectly entered email
addy to the password field, everything shifts down still, but the
cursor is where it should be. The shift is annoying, but obviously
there's much more going on here than an aesthetic glitch.

Has anyone experienced anything similar to this? Know what I can do
to fix it??

The bit of code having the problem is pasted below.

-Scott

<< problem code >>

<p>Email:<br>
<asp:textbox size="25" id="Email" runat="server" />&nbsp;

<asp:regularexpressionvalidator controltovalidate="Email"
validationexpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+"
display="Dynamic" errormessage="Must use a valid email address."
runat="server" id="RegularExpressionValidator1" />

<asp:requiredfieldvalidator controltovalidate="Email"
errormessage="'Email' must not be left blank." runat="server"
id="RequiredFieldValidator2" />

<p>Password:<br>
<asp:textbox size="25" id="Password" textmode="Password"
runat="server" />&nbsp;

<asp:requiredfieldvalidator controltovalidate="Password"
errormessage="'Password' must not be left blank." runat="server"
id="RequiredFieldValidator3" />

<< end problem code >>
Nov 18 '05 #1
0 987

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

Similar topics

0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
2
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow...
2
by: Dot net work | last post by:
Hello. Say I have a .net textbox that uses a .net regularexpressionvalidator. If the regular expression fails, is it possible to launch a small client side javascript function to do something,...
1
by: Venki | last post by:
I have a textbox to enter an email address followed by a telephone textbox. The email has a regularexpressionvalidator and a requiredfieldvalidator. The ReqField works fine, but if I put in an...
6
by: hansiman | last post by:
I'm having trouble getting the required field validator to work. I can still save the row in the datagrid... I can't see what I'm doing wrong. <asp:TemplateColumn SortExpression="c.Password"...
1
by: spidur1 | last post by:
For some reason these fields are not being validated before the postback. Here the HTML page. Am I missing something from the validator controls that needs to be set? <table cellpadding="0"...
1
by: Rory Becker | last post by:
Hi All It's been a while since I tried anything like this and it's just driving me nuts.. I want to have simple templated repeater which contains (Per item) a Label, a textbox and a...
2
by: goscottie | last post by:
How do I prevent field validator which resides outside of UpdatePanel from firing off? The label will update correctly without RequiredFieldValidator via Ajax. TIA. Code below.... <%@ Page...
2
by: akshalika | last post by:
Hi, I have a repeater control. it dynamically bind textbox or dropdown base on some condition. i want to bind required field validator dynamically for validate textbox or dropdown. here is my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.