Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Trouble rendering form panels in firefox and netscape

Reply
Thread Tools

Trouble rendering form panels in firefox and netscape

 
 
V Arzola
Guest
Posts: n/a
 
      03-21-2006
I've done extensive work developing a large on-line application form, only
to find that it will not render properly in Firefox (1.5.0.1) or Netscape
(8.0).

The panels are overlapping each other and style settings such as backcolor
are not propagating to child elements. Yet, it renders nicely in IE.
I've already updated the <browsercaps> section in my web.config file using
Rob Eberhardt's implementation
(http://slingfive.com/pages/code/browserCaps/), so the panel's are rendering
as div's and not table's. Yet the problem persists.

Please, can anyone tell me if it can be made to work in these browsers
without a major rehaul?

Here's a simplified excerpt of my code:

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Application.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style type="text/css"> legend {color:#2c5eb1} </style>
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: left">
&nbsp;&nbsp;
<br />
<table width="587" align="center">
<tr>
<td><asp:Table ID="Table1" runat="server"
BackColor="#D8E7EF" Height="3px" Width="587px">
<asp:TableRow runat="server">
<asp:TableCell runat="server"></asp:TableCell>
</asp:TableRow>
</asp:Table>
<aspanel ID="Panel1" runat="server"
BackColor="#FBF1EC" EnableTheming="True"
Font-Bold="True" Font-Italic="False" Font-Names="Arial"
Font-Size="Large" ForeColor="#2C5EB1"
GroupingText="Fieldset Legend" Height="50px" Width="587px">
<br />
<table>
<tr>
<td style="height: 30px">
&nbsp;<asp:Label ID="Label3"
runat="server" Text="Field 1:" Width="80px"></asp:Label>
<asp:TextBox ID="TextBox6"
runat="server" Width="188px"></asp:TextBox>
&nbsp;&nbsp; &nbsp;
<asp:Label ID="Label4" runat="server"
Text="Field 2:"></asp:Label>
<asp:TextBox ID="TextBox7"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 30px">
&nbsp;<asp:Label ID="Label5"
runat="server" Text="Field 3:"></asp:Label>
<asp:TextBox ID="TextBox8"
runat="server" Width="24px"></asp:TextBox>
&nbsp;&nbsp;
<asp:Label ID="Label6" runat="server"
Text="Field 4:"></asp:Label>
<asp:TextBox ID="TextBox9"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 30px">
&nbsp;<asp:Label ID="Label7"
runat="server" Text="Field 5:"></asp:Label>
<asp:TextBox ID="TextBox10"
runat="server" Width="430px"></asp:TextBox></td>
</tr>
</table>
</aspanel>
</td>
</tr>
<tr>
<td style="height: 33px">
</td>
</tr>
<tr>
<td><asp:Table ID="Table3" runat="server"
BackColor="#D8E7EF" Height="3px" Width="587px">
<asp:TableRow runat="server">
<asp:TableCell runat="server"></asp:TableCell>
</asp:TableRow>
</asp:Table>
<aspanel ID="Panel3" runat="server"
BackColor="#FBF1EC" EnableTheming="True"
Font-Bold="True" Font-Italic="False" Font-Names="Arial"
Font-Size="Large" ForeColor="#2C5EB1"
GroupingText="Fieldset Legend" Height="50px" Width="587px">
<br />
<table>
<tr>
<td style="height: 30px">
&nbsp;<asp:Label ID="Label8"
runat="server" Text="Field 1:" Width="80px"></asp:Label>
<asp:TextBox ID="TextBox11"
runat="server" Width="188px"></asp:TextBox>
&nbsp;&nbsp; &nbsp;
<asp:Label ID="Label9" runat="server"
Text="Field 2:"></asp:Label>
<asp:TextBox ID="TextBox12"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 30px">
&nbsp;<asp:Label ID="Label10"
runat="server" Text="Field 3:"></asp:Label>
<asp:TextBox ID="TextBox13"
runat="server" Width="24px"></asp:TextBox>
&nbsp;&nbsp;
<asp:Label ID="Label11" runat="server"
Text="Field 4:"></asp:Label>
<asp:TextBox ID="TextBox14"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 30px">
&nbsp;<asp:Label ID="Label12"
runat="server" Text="Field 5:"></asp:Label>
<asp:TextBox ID="TextBox15"
runat="server" Width="430px"></asp:TextBox></td>
</tr>
</table>
</aspanel>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
<br />
&nbsp;
<br />
</div>
</form>
</body>
</html>


 
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
Trouble rendering form panels in firefox and netscape V Arzola ASP .Net 0 03-21-2006 03:57 PM



Advertisments