Last post Apr 20, 2015 03:34 AM by Krunal Parekh
Apr 19, 2015 02:35 PM|hami1982|LINK
i have a gridview in my page , i wana to pass all rows of gridview to web service method from jquery .
please help me
Apr 20, 2015 03:34 AM|Krunal Parekh|LINK
The only thing I can think of for this is to build the array of rows by looping through the elements and fetching their values and then send it to the web method using jQuery which then send it to the web service.
http://aspdotnetcodebook.blogspot.com/2010/01/how-to-get-cell-value-of-gridview-using.html (Here instead of getting the last cell value just build an
array that will populate the all the rows.
Alternatively you could follow below things also You have a few methods available to you to retain the datasource that is bound to grid view.
So in your case store the list somewhere accessible and manipulate it as you go along and rebind it each time. Then when you want to pass that to web service fetch it from the appropriate store and the send in as the parameter.
Hope this help.