This is probably really easy, but it's bothering the heck out of me. I am dynamically adding cells to rows and rows to a table, all of which are the System.Web.UI.HtmlControls type. I have the following excerpt:
tableCell = New System.Web.UI.HtmlControls.HtmlTableCell
...which doesn't seem to be setting the class attribute of the <TD> tag. Instead the above code adds the following:
<TD style="Class: ModuleSubHead" >, which doesn't work.
What I want to end up with is the following:
<TD class="ModuleSubHead" > </td>.
It doesn't seem like this should be that difficult. Can someone please help me out here>