ASP.NET Get html table
I have a table on my ASP.net page something like this:
<table runat="server" id="resultsTable"></table>
I am dynamically adding content to the table and it works great. However, I want to get HTML tables after adding dynamic content, i.e. Something like this (formatting is not important, I just added)
<table runat="server" id="resultsTable">
<tr>
<td>Hello!</td>
</tr>
<tr>
<td>Goodbye!</td>
</tr>
</table>
I need the result as a string. Obviously, I could make a loop and build my own data table, but I would prefer not to, if at all possible.
+3
6 answers