I have an HTML table with runat="server" in asp.net.
I want to add row to the table On click event of a button or some thing like that, my table is like:
<table id="table1" runat="server"></table>
I tried table1.InnerHtml = "<tr></td>Test</td></tr>";
but it does not work and I get this exception:
System.NotSupportedException: 'HtmlTable' does not support the InnerHtml property.
How can I achieve this?