Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Textbox widths for Netscape


Message #1 by "Gerry Crowe" <gerry@g...> on Sun, 23 Jun 2002 22:39:59 +0100
Simple ( I think) question

I'm adding a textbox to a navigation bar, and it has to be a specific width.
If I add the following code...

  <asp:textbox id="txtSearch" runat="server" Width=75 />

...it looks fine in IE, but Netscape 6.2 ignores the width.

I then tried setting the width dynamically with the following...

 <form method="post" runat="server">
       <% txtSearch.Width = Unit.Pixel(25) %>
       <asp:textbox id="txtSearch" runat="server" />
 </form

...but again that only worked for IE.

Anyone know why neither of these work for Netscape?

Many thanks
Gerry



  Return to Index