Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > asp controls display inconsistently

Reply
Thread Tools

asp controls display inconsistently

 
 
=?Utf-8?B?QmFyYg==?=
Guest
Posts: n/a
 
      02-22-2006
Has anyone seen this happen?

I have pages with <asp:Textbox> and <aspropDownList> 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 "

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>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ImageIO/BufferedImage behaving inconsistently from one day to thenext. Fred Greer Java 11 06-21-2012 12:58 PM
server.transfer acting inconsistently =?Utf-8?B?cDN0M3I=?= ASP .Net 8 02-13-2006 09:59 AM
URGENT - ASP.NET Labels and LinkButtons behaving inconsistently ac Zahid ASP .Net Web Controls 8 12-19-2005 05:57 AM
Sony U30 inconsistently "losing" pictures on MemStick steve@portigal.com Digital Photography 11 10-25-2005 10:26 PM
Crystal Report Loads Inconsistently Corbin ASP .Net 0 02-03-2004 12:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57