private void button1_Click(object sender, EventArgs e) { var client = new WebClient(); string content = client.DownloadString("http://www.w3schools.com/"); textBox1.Text = content; }
public static void DownloadFile(string remoteFilename, string localFilename) { WebClient client = new WebClient(); client.DownloadFile(remoteFilename, localFilename); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)