ADO DOT NET
Well-known member
- Joined
- Dec 20, 2006
- Messages
- 156
Hi,
I want to download a string from a page in my site, so I use this and it works:
Just 1 problem that if there is a connection timeout, my application hangs out.
So should I use WebClient.DownloadStringAsync?
If so how?
I wrote this code but it doesnt work:
Please help me
I want to download a string from a page in my site, so I use this and it works:
Code:
NewString = WebClient.DownloadString("http://www.domain.com/setup.txt")
So should I use WebClient.DownloadStringAsync?
If so how?
I wrote this code but it doesnt work:
Code:
Dim SiteURI As New Uri("http://www.domain.com/setup.txt")
NewString = WebClient.DownloadStringAsync(SiteURI)