Webforms Textboxes under Netscape

  • Thread starter Thread starter Bob W
  • Start date Start date
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
 
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;")
 
Back
Top