c# How Do I make Sure Webclient allows necessary time for download

Posted by every_answer_gets_a_point on Stack Overflow See other posts from Stack Overflow or by every_answer_gets_a_point
Published on 2010-04-13T21:26:51Z Indexed on 2010/04/13 21:33 UTC
Read the original article Hit count: 201

Filed under:
using (var client = new WebClient())
                {
                     html = client.DownloadString(some_string);
                     //do something
                     html = client.DownloadString(some_string1);
                     //do something
html = client.DownloadString(some_string2);
                     //do something
html = client.DownloadString(some_string3);
                     //do something
etc
                }

webclient does not allow itself enough time to download the entire source of the webpage. how do i force it to wait until it finishes the donwload?

© Stack Overflow or respective owner

Related posts about c#