>I have an ASP.NET webpage setup to take a filename from the local machine and send that file to the server via a web service (with some other things happening on the web service machine that are irrelevant to this discussion...). All this is taking some time on large files, say up to 10-15 minutes. I am concerned that the user may get discouraged and close the browser before the transfer is completed.
>
>Is there a way to update the web display in the middle of a routine to, in effect, show a progress bar, field, box, etc. so the user knows that the program is still active?
>
>Thanks in advance!
Yes! Using the Asynchronous programming model. The proxy that is generated when you reference a web service will always make three method signatures for each WebMethod. For example, if you have a web method called MyMethod, it will create MyMethod(), which is the regular synchronous call, BeginMyMethod(), which begins a asynchronous call, and EndMyMethod(), which processes the method results.
Do a search on "Asynchronous Programming Model" on MSDN and check out these references:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconinvokingwebservicesasynchronously.asphttp://www.beginners.co.uk/link/id/262