htmltable and table

  • Thread starter Thread starter suzy
  • Start date Start date
S

suzy

what is the difference between a htmltable control and a table control i
know one is server control and the other is not, but when would each be
used?

also, how do you set the class of a html control to use a class in a CSS
file? it doesn't have a CssStyle property, (but the server control does).

thanks
 
to answer your second question use
HtmlTable.Attributes.Add("class","yourclassname");
 
Basically they are just different programming models.
Personally I find the HTMLTable to be easier to work with at design time,
while I find the web control easier to work with at run time.
 
Back
Top