p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

aspdotnet_website_programming thread: Behavior of webforms

Message #1 by r.wagner@d... on Sun, 5 Jan 2003 12:55:05

My problem: 
I?ve wrote an  ASP.NET application in VS.NET with normal  textbox 
controls. In IE all looks fine, but e.g. with Mozilla 
the length of the text field isn?t correct.

One Example:
<TD width="80"><asp:textbox id="tbTitel" runat="server" Width="80px" 
Height="24px" BorderStyle="Ridge"></asp:textbox></TD>

IE  has rendered the textbox size correct but Mozilla  give all textboxes 
in an HTML table row the same size.
The webpage sourcecode in Mozilla looks like:
<td width="80"><input name="tbTitel" type="text" id="tbTitel" /></td>

In IE:
<TD width="80"><input name="tbTitel" type="text" id="tbTitel" 
style="border-style:Ridge;height:24px;width:80px;" /></TD>
I think this looks much better!

I know that the ASP.NET deliver only compatible code for the specific 
client browser ? but the detection isn?t correct. 
A simple test shows the truth: Save the HTML output to a file and display 
this static HTML file in IE and Mozilla ? the
output is the same!!! 

Any idea ?     

  Return to Index