|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TableCell: BackColor Property But No BackGround Property?I am using an ASP:Table Control to make a table. I know that the HTML TD tag
has a background attribute and a bgcolor attribute. The TableCell has a BackColor property, which is the equivelant of the HTML bgcolor attribute, but what can I use as an equivelant for the HTML background attribute? Thanks. I would have to look but my first thought is this. The control will render
whatever attribute you add. So you can add it declaratively with attribute="value" syntax or on in the code you can add it through the Attributes collection on the control. C# control.Attributes.Add("Name", "Value"); I think you can do this too, because I think it is a NameValueCollection which means it handles the add automatically. control.Attributes["Name"] = "Value"; Show quoteHide quote "Nathan Sokalski" wrote: > I am using an ASP:Table Control to make a table. I know that the HTML TD tag > has a background attribute and a bgcolor attribute. The TableCell has a > BackColor property, which is the equivelant of the HTML bgcolor attribute, > but what can I use as an equivelant for the HTML background attribute? > Thanks. > -- > Nathan Sokalski > njsokal***@hotmail.com > http://www.nathansokalski.com/ > > >
Other interesting topics
System.Web.HttpException FindContol exception
framed Listbox Flicker detailsView DeleteCommand asp.net 2.0 webparts Custom Server Control Design Best Practices? Setting control focus on roundtrip How to Display an image, from a DB, into the Gridview (ASP.NET 2.0) How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET Webcontrols.menu with multiple root items bound to a sitemap |
|||||||||||||||||||||||