I have the following situation. I have asp.net 2.0 web service which is having webmethod which returns so much of data. As the processing takes time, i have decided to make that web request as asynchronous. I have made the necessary modification and was
trying to call the webmethoed using the eventbased model. So the webmethoed will get called after we click on a button. It takes data from a grid and then sends it to webmethod which processes it and returns the data.
But i have the following technical problem with the above way. When I first clicked the button for async request, I got the data. Now when I clicked it again im getting the result twice. Now if I try to click again Im getting the result 3 times and if i
continue clicking the button for that asynchronous call, I am getting the result that many number of times which is very annoying as the result is used to populate a grid. So because of this result is being populated number of times unnecessarily. I have tried
different ways but not able to find the reason for this behaviour.
So could you please let me know if there is any setting which will prevent this situation from being happend. Thanks in advance.
krishnamohan...
Member
9 Points
31 Posts
problem with asynchronous webservice
Apr 04, 2011 02:55 PM|LINK
Hello All,
I have the following situation. I have asp.net 2.0 web service which is having webmethod which returns so much of data. As the processing takes time, i have decided to make that web request as asynchronous. I have made the necessary modification and was trying to call the webmethoed using the eventbased model. So the webmethoed will get called after we click on a button. It takes data from a grid and then sends it to webmethod which processes it and returns the data.
But i have the following technical problem with the above way. When I first clicked the button for async request, I got the data. Now when I clicked it again im getting the result twice. Now if I try to click again Im getting the result 3 times and if i continue clicking the button for that asynchronous call, I am getting the result that many number of times which is very annoying as the result is used to populate a grid. So because of this result is being populated number of times unnecessarily. I have tried different ways but not able to find the reason for this behaviour.
So could you please let me know if there is any setting which will prevent this situation from being happend. Thanks in advance.
Regards,
Krishna
Peter pi - M...
Star
12871 Points
1786 Posts
Re: problem with asynchronous webservice
Apr 06, 2011 03:33 AM|LINK
Hi
This is a duplicated thread, for the benefit of others, please focus on one of them:
http://forums.asp.net/t/1669554.aspx
Thanks
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework