Webforms Textboxes under Netscape

B

Bob W

All,

I have a problem that Webform textboxes get smaller in width in
Netscape 4 and above. Everything works fine in IE 5 and above. I
tried to set the size property in the <asp: textbox> tag, but it has
no effect. Here is the tag as is right now:

<asp:textbox id="txtpass" runat="server" Width="325px"
TextMode="Password" MaxLength="14"></asp:textbox> and setting size=20
doesn't do anything.

Any suggestions? I am using VS.Net 2003 VB.NET.

Thanks,
Bob
 
S

Steve C. Orr [MVP, MCSD]

Visual Studio tries to help by stripping out some attributes for down level
browsers.
As a workaround, try this in your code behind:
txtpass.Attributes.Add("style", "width:325px;")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top