get and set an HTML contrls cssClass

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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

Back
Top