Hi, I am trying to read the dynamic content of a webpage from a web control.
I can read it just fine for the original code, but cant access the generated code.
I know this can be done because IE WebDeveloper V2 can do this
http://www.ieinspector.com/dominspector/index.htmlI dont want a Select All and Copy type option, I know how to do that, and it wont work in this senerio
the code I have so far, in its simpliest form is
Dim HTMLDoc As mshtml.HTMLDocument
HTMLDoc = WebBrowser1.Document.DomDo
cument
Dim f1 As mshtml.IHTMLWindow2 = CType(HTMLDoc.frames.item(
2), mshtml.IHTMLWindow2)
WriteLine(f1.document.body
.innerHTML
)
this will get me the original source on first load, but not any updated Ajax content?
If you dont know the answer to this, perhaps you know how to temporarialy disable javascript in an IE webbrowser control? that would serv me just as well as I could then use Select All > Copy
thanks
Start Free Trial