views:

15

answers:

1

Hi,

I have a list of object that i loop through, and in this loop i have an async webrequest that is getting a response from a site, according to the current object's data.

How can i wait for each async request to complete b4 going to the next object in the list? Should i use application.doevents?

A: 

In you async callback, kick off the next request when the current one completes. At that point you can also check if the cancel button was pressed and cancel the request if it was.

feroze