title: Error in table when adding runat=server
body: <p>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:</p>
  
  <pre><code>&lt;table class="hovertable" id="tblData"&gt;
      &lt;tr&gt;
          &lt;th&gt;ID:&lt;/th&gt;
          &lt;td colspan="3" style="font-weight: bold"&gt;
              &lt;%= Eval("ID") %&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th&gt;Date:&lt;/th&gt;
          &lt;td&gt;&lt;%# Eval("Date", "{0:dd-MMM-yyyy}") %&gt;&lt;/td&gt;
          &lt;th&gt;Amount:&lt;/th&gt;
          &lt;td&gt;&lt;%# Eval("Amount", "{0:C}") %&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>However, when I add the runat="server" attribute to my table, I am produced with the following error:</p>
  
  <pre><code>CS1502: The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments
  </code></pre>
  
  <p>Any ideas what may be wrong here? Am I missing out anything?</p>