This doesn't work. Sometimes I get an empty string while at other times I get an error saying connection was closed by remote client.
The url opens OK in all web browsers.
Anyone knows why?
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim wc As New System.Net.WebClient Dim s As String = wc.DownloadString("http://www.yellowpages.com.au") TextBox1.Text = s End Sub




icon on the left of the post.
Reply With Quote