jackjohnson44
asked on
asp.net threading
I have a long running process. My plan is to create a page which will execute the process which creates a file. The page will kick off a thread the return to the user and not wait for it to finish. The page will have some javascript that will keep pinging the server with a web method. When the file is created, the webservice will return the url of the file.
1. How can I kick off the thread so that the file is created without waiting for a callback? Is there an easy way to kick it off then leave?
2. Is this a good method? Should I do something else.
1. How can I kick off the thread so that the file is created without waiting for a callback? Is there an easy way to kick it off then leave?
2. Is this a good method? Should I do something else.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
a little more info:
I am creating an excel document which could be quite large. My plan was to load the page which will kick off the process then immediately return to the user and display a "loading" message. The plan was to keep ping-ing my server using jQuery and search for the file using the name (guid) that I have. When it finds it, display a link for downloading. Make sense?