DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 20 Jul 2007 11:04:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webcontrols        back       

Thread Index
  1    Chris Davoli
          2    marss


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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us