Changing the color of a border in an HTML table
Environment: VS2005, sql server 2000, Win XP
I put runat=server on a regular HTML table. Then instead of setting the
style in the html I want to dynamically change the style of the html table
border color. We'll it won't let you change the OUTER border color unless you
use the styles attribute in the html, but even though it has runat=server, it
won't let you change the style attribute in the codebehind. I can change
using style sheet, but can't change the style sheet.
Any ideas on how to change the border color dynamically?
Date:Fri, 20 Jul 2007 11:04:00 -0700
Author:
|
Re: Changing the color of a border in an HTML table
On 20 , 21:04, Chris Davoli
wrote:
> Any ideas on how to change the border color dynamically?
Maybe it is hat you are looking for:
..aspx file:
<table id="tbl" runat="server"><tr>...</tr></table>
..cs file:
tbl.Style["border"] = "solid 1px red";
Mykola
Date:Mon, 23 Jul 2007 01:42:16 -0700
Author:
|