Retrieve HTML for Web Page Simple
suggest changestring contents = ""; string url = "http://msdn.microsoft.com"; using (System.Net.WebClient client = new System.Net.WebClient()) { contents = client.DownloadString(url); } Console.WriteLine(contents);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents