What is the recommended approach to dealing with process which take a long time to execute? I don’t want to simply run it on the server since the page will time out.
I browsed the web and found multiple approaches – AJAX, Threading, Web Services… (none of which I have experience with)
What is the best practice method of dealing with this?
Thank you.
One transparent and reliable way is to implement desired task along with processing queue as WebService. Thus, on client-side you can simply send request to webserver, receive some id in return in order to check the result later.
Everything else depends on how rich user-experience you are trying to implement. You can simply let user to refresh control or entire page from time to time by pressing a button. Or implement ajax-based control that sends requests and checks for the results from time to time by itself.