Error in table when adding runat=server

cmangum

New Member
I have a html table in my ASPX page and would like to use it in code-behind for some processing. The table is shown as below:\[code\]<table class="hovertable" id="tblData"> <tr> <th>ID:</th> <td colspan="3" style="font-weight: bold"> <%= Eval("ID") %> </td> </tr> <tr> <th>Date:</th> <td><%# Eval("Date", "{0:dd-MMM-yyyy}") %></td> <th>Amount:</th> <td><%# Eval("Amount", "{0:C}") %> </tr></table>\[/code\]However, when I add the runat="server" attribute to my table, I am produced with the following error:\[code\]CS1502: The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments\[/code\]Any ideas what may be wrong here? Am I missing out anything?
 
Back
Top