I would like to know the replacement for the background color in a table: bgcolor.

Recommended Answers

All 2 Replies

>I would like to know the replacement for the background color in a table: bgcolor.

Yes, you can. Write JavaScript/jQuery code.

Do you not have a stylesheet (css)?

It's messy but an alternative...give your table an Id then in the pageload:

tableId.Attributes.Add("style", "background-color:#ccc");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.