mithrandiir42
Member
- Joined
- Mar 7, 2006
- Messages
- 16
- Programming Experience
- 3-5
This one seems so easy but it's turning out to be very difficult.. I have pages loading in a WebBrowser object and i'd like to be able to get the HTML source (just as you would with the View Source option in IE). I thought i had it with browser.Document.Body.innerHTML but that doesn't give you the exact source as 'View Source' does. Being able to get the exact source with no alterations to the formatting is critical for my app. I would use WebRequest or WebClient and just download the raw data there but unfortunately i'm using WebBrowser to navigate a site & log in before i get to the page i need to retrieve.. if anyone know of a way i could get the raw html source of a page using the WebBrowser control i'd really appreciate the help.
Thanks!
Thanks!