I have a asp.net web site that contains some tables. However these are not asp:Table i.e. they are simple HTML tables built this way:
<table><tr><td></td></tr></table>
Now I would like to know if it’s possible to add rows dynamically to this table from the code behind (i.e. C#) and if yes, how do I go about doing it?
It’s been a while but there is the repeater-control in ASP.NET Webforms for this kind of stuff.
Here is a nice article introducing this conept: Data Repeater Controls in ASP.NET
I think this will be easier for you than hacking this with AJAX/JScript
Aside from this: Daniel Casserly is right – this is very easy if you do it in MVC (even easier if you use Razor-Syntax), as it would translate do something like: