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

asp controls display inconsistently

Has anyone seen this happen?

I have pages with <asp:Textbox> and <asp:DropDownList> controls on them.
Some of them display differently. Some are recessed with the left & top
borders being gray (to look 3D). Some look flat w/ a light blue border all
the way around. The dropdown lists all have light blue borders and look flat.
ALL controls on the pages are coded to the default values. There are no
commands to determine the border style or colors.

What I need to do is make all of the controls look consistent. I don't
understand why the default is not consistent. Can anyone shed light?
THANKS!!

Here's an example of 2 controls that I have...imagine an asp:table, and
inside somewhere is this code. There are 2 textboxes. The first shows up w/
a gray 3D border, and the 2nd is flat and light blue. This is in IE6.

<asp:TableRow ID="trEmail">
<asp:TableCell HorizontalAlign="Right" Runat="Server"
ID="tcEmailLbl"></asp:TableCell>
<asp:TableCell HorizontalAlign="Left" Runat="Server" ID="tcEmailTxt">
<asp:TextBox ID="txtEmail" Width="200" MaxLength="100"
Runat="Server"></asp:TextBox>
<br>
<asp:RegularExpressionValidator Runat="Server" ID="revEmail1"
ControlToValidate="txtEmail" display="dynamic" Text="Email Address must be
less than 101 characters"
ValidationExpression=".{0,101}"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator Runat="Server" ID="revEmail2"
ControlToValidate="txtEmail" display="dynamic" Text="Email Address must be
formatted as my****@myprovider.com"

ValidationExpression="^[\w-\.]+@([\w-]+\.)+[\w-]{2,3}$"></asp:RegularExpressionValidator>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="trUsername">
<asp:TableCell HorizontalAlign="Right" Runat="Server"
ID="tcUsernameLbl"></asp:TableCell>
<asp:TableCell HorizontalAlign="Left" Runat="Server" ID="tcUsernameTxt">
<asp:TextBox ID="txtUsername" Width="200" MaxLength="10"
Runat="Server"></asp:TextBox>
<br>
<asp:RegularExpressionValidator Runat="Server" ID="revUsername"
ControlToValidate="txtUsername" display="dynamic"
Text="User Name must be less than 11 characters"
ValidationExpression=".{0,10}"></asp:RegularExpressionValidator>
</asp:TableCell>
</asp:TableRow>
Feb 22 '06 #1
0 856

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

Similar topics

8
by: Harry Haller | last post by:
The right arrow in IE is displayed aligned to the bottom of the line. Is there any way I can display it aligned vertially in the middle? Example: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01...
12
by: Daniel Walzenbach | last post by:
Hi, I want to display a Label in a DataGrid according to some condition. I therefore check whether the condition is true in the ItemDateBound EventHandler of the DataGrid. Unfortunately the...
9
by: Tarscher | last post by:
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have...
2
by: Richard Lewis Haggard | last post by:
I've got a problem with the way that some dialogs, er ah, I mean forms, position their controls. On most machines, but not on my client's laptop, all of the forms and their controls display in the...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.