Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#ASP.NET
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.
Thanks...
Posted 31-Jan-13 0:18am
Comments
aspnet_regiis -i at 31-Jan-13 6:36am
   
Yes..Its is possible... Use jQuery AJAX and call the server side methods for each row..
Sunil Kumar Pandab at 31-Jan-13 7:45am
   
can u please give some sample code or small example for getting overall idea about what you saying...
ryanb31 at 31-Jan-13 8:00am
   
http://api.jquery.com/category/ajax/ 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
good
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.
  Permalink  
Comments
Sunil Kumar Pandab at 11-Feb-13 3:37am
   
Thanks dear. By the help of PageMethod i did this.
Sandeep Mewara at 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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 387
1 OriginalGriff 235
2 thatraja 220
3 Emre Ataseven 180
4 CPallini 135
0 Sergey Alexandrovich Kryukov 8,849
1 OriginalGriff 5,035
2 Peter Leow 3,949
3 Maciej Los 3,535
4 Abhinav S 3,148


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid