Changing the color of a border in an HTML table

Discussion in 'ASP .Net Web Controls' started by Chris Davoli, Jul 20, 2007.

  1. Chris Davoli

    Chris Davoli Guest

    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?
     
    Chris Davoli, Jul 20, 2007
    #1
    1. Advertising

  2. Chris Davoli

    marss Guest

    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
     
    marss, Jul 23, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. phl
    Replies:
    1
    Views:
    4,350
    Martin Jay
    Jun 8, 2006
  2. =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=

    border-color: #003366; border-width: 2px;

    =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=, Jul 17, 2006, in forum: HTML
    Replies:
    64
    Views:
    3,533
    Adrienne Boswell
    Jul 30, 2006
  3. Mudcat
    Replies:
    3
    Views:
    488
    Eric Brunel
    Nov 23, 2004
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    425
    Kamaljeet Saini
    Feb 13, 2009
  5. Replies:
    1
    Views:
    272
    marss
    Feb 14, 2007
Loading...

Share This Page