Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hide Copy Code
- WebClient webClient = new WebClient();
- // Register the callback
- webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);
- webClient.DownloadStringAsync(new System.Uri(YOUR_URL));
- void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
- {
- if (e.Error == null)
- {
- updateSomething(e.result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement