How to add TableRow / TableCell to ASP.NET table from Javascript?

What's the best way to dynamically add TableRows and TableCells to an ASP.NET table from Javascript?

Thank,

Jeff

+1


source to share


2 answers


I'm afraid your question is too vague to be fully answered. If you really want to create TableRow or TableCell objects, you will of course need to post back (no JavaScript needed) or make an AJAX (JavaScript) call to the server-side code. Anyway, it doesn't actually work JavaScript. If you just want to dynamically add a row to an HTML table rendered in a browser, you can accomplish that without any need for TableRow / TableCell abstractions from ASP.NET.

For a more complete answer, you should be more specific about what you are trying to accomplish.



+1


source


Unless, of course, you are using javascript.net as your server-side scripting language! -)



0


source







All Articles