Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Changing the color of a border in an HTML table

Reply
Thread Tools

Changing the color of a border in an HTML table

 
 
Chris Davoli
Guest
Posts: n/a
 
      07-20-2007
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?

 
Reply With Quote
 
 
 
 
marss
Guest
Posts: n/a
 
      07-23-2007
On 20 , 21:04, Chris Davoli <ChrisDav...@discussions.microsoft.com>
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


 
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
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
rounded corners in which my border color is different than the background color laredotornado@zipmail.com Javascript 1 02-14-2007 07:37 AM
border-color: #003366; border-width: 2px; =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= HTML 64 07-30-2006 04:01 PM
row bottom border in inner table not matching up with row border in outer table phl HTML 1 06-08-2006 03:43 PM
Changing the color of default frame border Mudcat Python 3 11-23-2004 09:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57