Retrieve HTML for Web Page (Simple) C# with Example



Retrieve HTML for Web Page (Simple) C# with Example

string contents = ""; 
string url = "http://msdn.microsoft.com"; 
using (System.Net.WebClient client = new System.Net.WebClient()) 
{ 
contents = client.DownloadString(url); 
} 
Console.WriteLine(contents); 

0 Comment's

Comment Form

Submit Comment