Re: get and set an HTML contrls cssClass

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Add a value to the Attribute collection:

objCell.Attributes.Add("class", "prisoner");

WebBuilder451 wrote:
I have htmlcontrols.htmltablecells on a page.
I can find the Tablecells ok and can set some of the attributes, but not the cssClass. How is this done? i can for asp controls, but not for these.

Any Help would be appreciated.
.