473,657 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validators messing up layout in IE before being triggered?

I have RequiredFieldVa lidators which are displacing my layout before the
validator is used. This only happens in IE, Firefox renders the page
correctly.

Sample useage:
<asp:Label ID="lblLastName " runat="server"
CssClass="waLab el" Text="Last Name" ></asp:Label>
<asp:TextBox ID="tbLastName " Text='<%# Bind("LastName" )
%>' ReadOnly="false " runat="server" CssClass="waTex tBox" Width="180px"
MaxLength="25"> </asp:TextBox>
<asp:RequiredFi eldValidator ID="RequiredFie ldValidator2" runat="server"
ControlToValida te="tbLastName " ErrorMessage="L ast name is required"
SetFocusOnError ="True" ValidationGroup ="regForm">
<img src="~/images/bangs.gif" title="required "
/></asp:RequiredFie ldValidator><br />

When I comment out the Validator control everything renders as it should.

Can anyone suggest a solution as the vertical spacing of my Label-TextBox
combinations isn't consistent and the form looks unprofessional.

Thanks much.
Apr 11 '06 #1
4 1328
Turns out that if I remove the img tag in the Validator's content and use
text to indicate the error instead the layout renders ok. Too bad, I had a
cute exclamation point I was using to highlight the fields in error which
worked fine in Firefox.

"Dabbler" wrote:
I have RequiredFieldVa lidators which are displacing my layout before the
validator is used. This only happens in IE, Firefox renders the page
correctly.

Sample useage:
<asp:Label ID="lblLastName " runat="server"
CssClass="waLab el" Text="Last Name" ></asp:Label>
<asp:TextBox ID="tbLastName " Text='<%# Bind("LastName" )
%>' ReadOnly="false " runat="server" CssClass="waTex tBox" Width="180px"
MaxLength="25"> </asp:TextBox>
<asp:RequiredFi eldValidator ID="RequiredFie ldValidator2" runat="server"
ControlToValida te="tbLastName " ErrorMessage="L ast name is required"
SetFocusOnError ="True" ValidationGroup ="regForm">
<img src="~/images/bangs.gif" title="required "
/></asp:RequiredFie ldValidator><br />

When I comment out the Validator control everything renders as it should.

Can anyone suggest a solution as the vertical spacing of my Label-TextBox
combinations isn't consistent and the form looks unprofessional.

Thanks much.

Apr 11 '06 #2
have you tried Display="Dynami c" option on the validator
?

"Dabbler" <Da*****@discus sions.microsoft .com> wrote in message
news:D1******** *************** ***********@mic rosoft.com...
Turns out that if I remove the img tag in the Validator's content and use
text to indicate the error instead the layout renders ok. Too bad, I had a
cute exclamation point I was using to highlight the fields in error which
worked fine in Firefox.

"Dabbler" wrote:
I have RequiredFieldVa lidators which are displacing my layout before the
validator is used. This only happens in IE, Firefox renders the page
correctly.

Sample useage:
<asp:Label ID="lblLastName " runat="server"
CssClass="waLab el" Text="Last Name" ></asp:Label>
<asp:TextBox ID="tbLastName " Text='<%#
Bind("LastName" )
%>' ReadOnly="false " runat="server" CssClass="waTex tBox" Width="180px"
MaxLength="25"> </asp:TextBox>
<asp:RequiredFi eldValidator ID="RequiredFie ldValidator2" runat="server"
ControlToValida te="tbLastName " ErrorMessage="L ast name is required"
SetFocusOnError ="True" ValidationGroup ="regForm">
<img src="~/images/bangs.gif" title="required "
/></asp:RequiredFie ldValidator><br />

When I comment out the Validator control everything renders as it should.

Can anyone suggest a solution as the vertical spacing of my Label-TextBox
combinations isn't consistent and the form looks unprofessional.

Thanks much.

Apr 11 '06 #3

Thanks, I hadn't even know about it. I'll give it a try.
"Swanand Mokashi" wrote:
have you tried Display="Dynami c" option on the validator
?

"Dabbler" <Da*****@discus sions.microsoft .com> wrote in message
news:D1******** *************** ***********@mic rosoft.com...
Turns out that if I remove the img tag in the Validator's content and use
text to indicate the error instead the layout renders ok. Too bad, I had a
cute exclamation point I was using to highlight the fields in error which
worked fine in Firefox.

"Dabbler" wrote:
I have RequiredFieldVa lidators which are displacing my layout before the
validator is used. This only happens in IE, Firefox renders the page
correctly.

Sample useage:
<asp:Label ID="lblLastName " runat="server"
CssClass="waLab el" Text="Last Name" ></asp:Label>
<asp:TextBox ID="tbLastName " Text='<%#
Bind("LastName" )
%>' ReadOnly="false " runat="server" CssClass="waTex tBox" Width="180px"
MaxLength="25"> </asp:TextBox>
<asp:RequiredFi eldValidator ID="RequiredFie ldValidator2" runat="server"
ControlToValida te="tbLastName " ErrorMessage="L ast name is required"
SetFocusOnError ="True" ValidationGroup ="regForm">
<img src="~/images/bangs.gif" title="required "
/></asp:RequiredFie ldValidator><br />

When I comment out the Validator control everything renders as it should.

Can anyone suggest a solution as the vertical spacing of my Label-TextBox
combinations isn't consistent and the form looks unprofessional.

Thanks much.


Apr 12 '06 #4
glad to help -- let us know if it works
"Dabbler" <Da*****@discus sions.microsoft .com> wrote in message
news:AC******** *************** ***********@mic rosoft.com...

Thanks, I hadn't even know about it. I'll give it a try.
"Swanand Mokashi" wrote:
have you tried Display="Dynami c" option on the validator
?

"Dabbler" <Da*****@discus sions.microsoft .com> wrote in message
news:D1******** *************** ***********@mic rosoft.com...
> Turns out that if I remove the img tag in the Validator's content and
> use
> text to indicate the error instead the layout renders ok. Too bad, I
> had a
> cute exclamation point I was using to highlight the fields in error
> which
> worked fine in Firefox.
>
> "Dabbler" wrote:
>
>> I have RequiredFieldVa lidators which are displacing my layout before
>> the
>> validator is used. This only happens in IE, Firefox renders the page
>> correctly.
>>
>> Sample useage:
>> <asp:Label ID="lblLastName " runat="server"
>> CssClass="waLab el" Text="Last Name" ></asp:Label>
>> <asp:TextBox ID="tbLastName " Text='<%#
>> Bind("LastName" )
>> %>' ReadOnly="false " runat="server" CssClass="waTex tBox" Width="180px"
>> MaxLength="25"> </asp:TextBox>
>> <asp:RequiredFi eldValidator ID="RequiredFie ldValidator2"
>> runat="server"
>> ControlToValida te="tbLastName " ErrorMessage="L ast name is required"
>> SetFocusOnError ="True" ValidationGroup ="regForm">
>> <img src="~/images/bangs.gif" title="required "
>> /></asp:RequiredFie ldValidator><br />
>>
>> When I comment out the Validator control everything renders as it
>> should.
>>
>> Can anyone suggest a solution as the vertical spacing of my
>> Label-TextBox
>> combinations isn't consistent and the form looks unprofessional.
>>
>> Thanks much.
>>
>>


Apr 12 '06 #5

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

Similar topics

11
1564
by: Richard | last post by:
http://geocities.com/r_bullis/gallery2.html Validator 3 at w3c totally annhialates the page. It doesn't like comment tags, nor does it like "alt" not being used with img tags. While the jigsaw version now says the page is compliant. Validator 3 doesn't like the added stuff yahoo puts on for their embedded ads, while Jigsaw totally ignores them.
0
1317
by: Brian Rice | last post by:
I created a form with three panels on it for multi-page input. Each panel has a next button (Next1, Next2, and Next3). I start with only Panel1 visible. When I click on Next1 I make Panel2 visible and turn off Panel1. This works fine... but all of my required field validators on Panel2 get triggered (on this first postback)... it seems to me that if a
3
1866
by: John Blair | last post by:
Hi, I have validators outside of a datagrid (for adding a new grid row) - however when i click "edit" column and then the "update" column of a grid row that has been edited - my other validators on the page fire which i don't want - i've tried to make them invisible - this hides the controls but i get a strange error when i click the Update column - i tried to disable them - they become disabled but i can see my error "*" appearing next...
1
1354
by: psparago | last post by:
I have developed a tab user control in which each tab is itself a user control and the tab selection control is a datalist. Each tabbed user control has zero or more validator controls on it. The hosting page has a summary validator on it. Each tabbed user control is created dynamically on page_init (on both postback and not postback), but only the tabbed user control which corresponds to the selected tab is marked as visible. This has...
2
3094
by: James Frayne | last post by:
Hi, I am trying to integrate phpBB into my existing site design. I am doing this simply by pasting fragments of my HTML into the phpBB templates. This works fine in Firefox and Opera but the layout breaks in IE. I have narrowed down the problem to the fact that phpBB uses tables for layout and sets the width of those to 100%. If I change this to 80% it looks correct in IE but not in Firefox. Is this a bug in IE and if so how can I...
7
1224
by: Adrian Parker | last post by:
Having a problem with validators. Because we want to only test whether the current field in a changed event is valid before we process the change code, I have tried to turn off all validators for the page (all ctrls are in a table), then just enable the one relevant validator, run the page.validate and then if valid, do the change code. otherwise, skip the change code and then finally enable all the validators again. What's happening...
0
1045
by: savvy | last post by:
I'm having some background graphics layout on the page and a table layout on top of it. Inside the table i have two DropDownList menus whose AutoPostBack Property is set to true and I'm using two Required Field Validators for both the drop down menus. I dont know whats the reason but everytime I change the dropdown menu the page takes a long time to reload and moreover I can even see the whole background graphic layout with no table...
4
1263
by: Madhur | last post by:
Hello All I am learning how to use ASP.NET Validators and would appreciate if someone could provide me with guidance. I have written very simple ASPX page below with a Dropdown list, a button. If a value of 3 is selected inside dropdown list , I add two text boxes each attached with validators.
2
1811
by: Alec MacLean | last post by:
Hi, I have a page using AJAX. The page has three modal popups that work fine when I don't have field validators in place. As soon as I put a validator in place, the popup "form" the validator is part of still works, but the click events (postback) of the other popups is stopped. So, I have two data entry forms I want to validate, each within their own modal Popup panels. The system detects the user type accessing the page and this...
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
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
8825
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
7324
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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
4151
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
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1953
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1611
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.