Click here to Skip to main content
12,945,719 members (50,044 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a gridview containing maximum 50 rows and a button below gridview. When that button is clicked some operation is done by taking data from gridview row by row. Its a long time process so i just want to do coding like:- for each row, operation will be done and showing to user that this row's operation done successfully. Then for 2nd row operation will be done and so on.

For each row control will go to server and finished work and come to user page and update that row by showing a status 'completed' and then control will go for 2nd row.

Dear Experts, Is it possible? If yes kindly suggest me, Its some kind of urgent need.
Posted 31-Jan-13 0:18am
aspnet_regiis -i 31-Jan-13 6:36am
Yes..Its is possible... Use jQuery AJAX and call the server side methods for each row..
Sunil Kumar Pandab 31-Jan-13 7:45am
can u please give some sample code or small example for getting overall idea about what you saying...
ryanb31 31-Jan-13 8:00am Basically, create a webservice and then from jquery call your webservice passing in the values that you need. That way control can remain on the client side so that you can be showing progress updates.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There are few ways to interact with server side through client side(Javascript):
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]

Try that you find fit.
Sunil Kumar Pandab 11-Feb-13 3:37am
Thanks dear.
By the help of PageMethod i did this.
Sandeep Mewara 11-Feb-13 9:53am
Good to know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,899
CHill60 3,170
Maciej Los 2,443
Jochen Arndt 1,910
ppolymorphe 1,775

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100