How to Get Row Value of a Table from client side ...

R

RC

Hi,

I have build a webpage with a WebControls.Table (<asp:Table....> ....).
And I will add some rows during Page_Load() and response to client.

Client can change the Text in the Row Cell by client side javascript. Right
now I want to get back the changed value from the client side.

But I found that once iterate through the rows collection of the table, at
PostBack Event, I found the value of Row count is 0. Any Idea to get the
Value at server side??

RC
 
E

Eliyahu Goldin

If you build the table dynamically, it doesn't come back. You have to
rebuild it on every postback.

If only one value changes, pass it back from the client in a hidden input.
If multiple cells can change, use a datagrid with Update functionality.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top