HTMLTable and CssClass

  • Thread starter Thread starter motorhead_maniac
  • Start date Start date
M

motorhead_maniac

Hello,

Iam trying to apply a css class while creating a html table in a server
control.
Iam using the HtmlTable class to generate table,
the HtmlTable class has a Style property which takes name,value pairs
for all the styles i want to apply, but how can i apply a class name
directly ?

My only other option is to use Table class to create table, but iam
concerned about performance and want to use light weight controls.

thanks
 
Try to add the "class" attribute with the value you want to the Attributes
collection...
 

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