I am using the following to get a web page which works fine
public static HtmlDocument GetWebPageFromUrl(string url)
{
var hw = new HtmlWeb()
DocumentNode.OuterHtml
contains the full html:
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.Load("sample.html");
string html = doc.DocumentNode.OuterHtml;
In your example:
public static string GetWebPageHtmlFromUrl(string url)
{
var hw = new HtmlWeb();
HtmlDocument doc = hw.Load(url);
return doc.DocumentNode.OuterHtml;
}