get and set an HTML contrls cssClass

G

Guest

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.
 
G

Guest

Add a value to the Attribute collection:

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top