Yttrium
Yttrium

Reputation: 2137

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

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

Thanks,

Jeff

Upvotes: 1

Views: 863

Answers (2)

roenving
roenving

Reputation: 2636

Unless, of course, you're using javascript.net as your serverside scripting language !-)

Upvotes: 0

Bryan
Bryan

Reputation: 8778

Your question is too vague to answer completely, I'm afraid. If you actually want to create TableRow or TableCell objects, you would of course need to post back (no need for JavaScript) or make an AJAX call (JavaScript) to server-side code. Either way, it's not really JavaScript doing the work. If you just want to dynamically add a row to an HTML table presented in the browser, you could accomplish this without any need for TableRow/TableCell abstractions from ASP.NET.

For a more complete answer you'll have to be more specific about what you are trying to accomplish.

Upvotes: 1

Related Questions