ASP.NET: How to apply CSS class for a Table generated in C# codebehind
<p>I have an ASP.NET page and I am generating an HTML table in my server side code (codebehind file )as follows.</p>

<pre><code> HtmlTable iTblCart = new HtmlTable();
 HtmlTableRow iRowHeader = new HtmlTableRow();
 HtmlTableCell iCellHead1 = new HtmlTableCell();
 iCellHead1.InnerText= "Item";
 iRowHeader.Cells.Add(iCellHead1);
 iTblCart.Rows.Add(iCartRow);
 pnlPhoneCart.Controls.Add(iTblCart);  //appending to a panel
</code></pre>

<p>I want to apply a CSS class to this table.I could not find such a property from the intellisense.Am i missing anything ? Can anyone guide me how to go ahead ?</p>
