Whenever we encounter a long process in a web application, we don't want the user to see frozen browser for long time. He may find it difficult to assert whether the process is done or not. So its better that we display the progress or tell about each sub process completion in such scenarios.
We can achieve this by using Web Services and JQuery to call the web service asynchronously to find out the status of the application.
Attached is the sample application which demonstrates the same.
P.S: We cannot use session to hold the status as using session will force asp.net to process the web service requests only after the long running process.
Drop out your comments or questions if you have any. Please let me know if there is a better way to achieve this task.
Sample Application
I blog whenever i find things to remember and which are interesting when i am working/learning. I am happy if these experiences are useful to someone else too :) . Please feel free to suggest/correct. These are just out of my experiences . So they may be always a better way to do them ! I view life as a continuous learning experience !!
Showing posts with label Jquery. Show all posts
Showing posts with label Jquery. Show all posts
Friday, August 12, 2011
Wednesday, July 27, 2011
Subscribe to:
Posts (Atom)