Link to home
Start Free TrialLog in
Avatar of a_twixt_in_the_tale
a_twixt_in_the_tale

asked on

Add rows to a datagrid using data from clientside

ASP.NET
I have a datagrid on a page. And I'm using client side Javascript to add more rows to the table rendered in the HTML. The problem is when i submit the page and go back and count the rows in the page the newly added rows are not being considered in the datagrid. The itemcount does not change

I'm using cloneNode to create the additional rows and i am changing the id of the new rows in the format that is used by the asp (sumthing like asdfl10__adfdafl23_adfsf34... and similarly the name). Is there any way i can directly load the html table into the datagrid/datatable

I don't know much about asp (knowledge -> 0 :().
Currently im giving the same id for all the rows and hence get a , delimited value which i have to seperate on the server and use. It would be nice if i got sumthing using which i could just add rows on the clientside using javascript and have the same rows added to the datagrid.

thanx in advance.
:)
Don

ps. i guess the codebehind is c# though im not sure
ASKER CERTIFIED SOLUTION
Avatar of thomasdodds
thomasdodds

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Learned
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: thomasdodds {http:#9734607}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer