How to stop Webclient downloadfile process


Dec 30, 2009

In my program I used "webclient downloadfile" for downloading pdf files from a URL to my local machine.

Issue is while the downloading of files is in the process if I close the browser the downloading process is not stopping, can anyone please tell me how to stop downloading the files if I close the browser in middle of downloading process.

I used
WebClient myclient = new WebClient();
myclient.DownloadFile(src1, dest1);

at the end I used

I also tried
using (WebClient myclient = new WebClient())

Please suggest me how to solve this issue.
Top Bottom