Hi,
I am trying to get my head around Async web pages. I understand that Asyc is only good for releasing a thread which is idle and waiting for a database read or similar. However, I have a webpage where after the data is returned from the db, I need to do some processing which may take up to 30 seconds. How should I attack this? Should I do an asyc call to the db and then after the data is returned commence my the data processing in the EndAsync method?
Also, what about asyc xml? I have a large xml file I need to parse asynchronously (> 250mb). After an amout of data is read, I need to process it. The processing may take 2 - 3 seconds. How do I release the read on the xml document while I am doing the processing and then go back to the same spot in the xml?
Thanks
Jeff
Answers
Know the answer? Post it. Somebody with the same question will find it here.