"unable to connect to remote server"
I use Windows 7 and I've checked Windows Firewall. It didn't correct the error. I'd appreciate any tips. Here's the C# code:
private void button1_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
const string strUrl = "http://www.yahoo.com/";
byte[] reqHTML;
reqHTML = webClient.DownloadData(strUrl);
UTF8Encoding objUTF8 = new UTF8Encoding();
textBox2.Text = objUTF8.GetString(reqHTML);
}
Thanks!!

New Topic/Question
This topic is locked




MultiQuote


|