Get WebPage SourceCode





3.00/5 (6 votes)
you will need to add
using System.Net;
private static String webSource(String url)
{
return Encoding.ASCII.GetString(new WebClient().DownloadData(WebRequest.Create(url).GetResponse().ResponseUri));
}
or you could also use
private static String webSource(String url)
{
return Encoding.ASCII.GetString(new WebClient().DownloadData(url));
}