Asp:table bordercolor different html rendered for 1.1 and 2.0.

Posted by Malcolm on Stack Overflow See other posts from Stack Overflow or by Malcolm
Published on 2009-07-31T05:55:11Z Indexed on 2010/03/25 2:03 UTC
Read the original article Hit count: 284

Filed under:

Hi

I have the following markup .NET 1.1 app.

I want the grid lines of the table to be darkgray this is the goal here.

<asp:table id="tbl" Runat="server" CellSpacing="0" BorderColor="darkgray" GridLines="Both"></asp:table>

I have the app in IIS set as ver 1.1 in my dev box and 2.0 in production for various reasons.

The page source in 1.1 renders this

<table id="ctlTimesheetMonthly_tbl" cellspacing="0" rules="all" bordercolor="DarkGray" border="1" style="border-color:DarkGray;border-collapse:collapse;">`

2.0 renders this

<table id="ctlTimesheetMonthly_tbl" cellspacing="0" rules="all" border="1" style="border-color:DarkGray;border-collapse:collapse;">

Which is wrong as it produces a white border for some reason.

Any idea how to get both the same??

Malcolm

© Stack Overflow or respective owner

Related posts about ASP.NET