I have an ASP.NET page and some custom class that fetch specified webpage, and returns this page body.
protected String GetHtml()
{
Thread thread =
First a little background. I have been trying to scrape information from a web page. The content of this webpage is dynamic. What I mean by dynamic is that the web page loads more information as you scroll down to the bottom of the page. The HTML content changes as you scroll to the bottom of the page. Unfortunately the Web Browser Object does not update this information automatically. It still has the original document that it first loaded via the webbrowser.navigate function. The updated information is available to the HTMLElementCollection.
The following code did not work for me.
webBrowser1.Document.GetElementsByTagName("HTML")[0].OuterHtml
I broke up the above statement as follows
Dim eCollections As HtmlElementCollection
Dim strDoc As String
eCollections = WB.Document.GetElementsByTagName("HTML")
strDoc = eCollections(0).OuterHtml
Worked like a charm. Hope this helps someone too.