Of course I came up with one possible solution just after I posted this. Using System.Net namespace, I can download the web page as a string before passing it on to HTML Agility Pack:
In other words, instead of HtmlWeb.Load() use WebClient.DownloadString combined with HtmlDocument.LoadHtml().
Is there any better way or a way? Any other thoughts?
Thanks!
//M
var wc = new WebClient();
var htmlText = wc.DownloadString(uriBillboardSearch);
var htmlDoc = new HtmlDocument();
htmlDoc.LoadHtml(htmlText);
htmlText.Length would hold the size of downloaded content, right?In other words, instead of HtmlWeb.Load() use WebClient.DownloadString combined with HtmlDocument.LoadHtml().
Is there any better way or a way? Any other thoughts?
Thanks!
//M