I'm writing a windows forms application that accesses web pages. I've used
the web browser control and this works nicely.

Now I'm wondering if I can push the content (html) of a web page (as you see
from IE when you "View/Source") to a string variable (or whatever) so that I
can process it.

Re: Web Page Content by Herfried

Herfried
Fri May 20 06:47:51 CDT 2005

"JezB" <jezbroadsword@blueyonder.co.uk> schrieb:
> I'm writing a windows forms application that accesses web pages. I've used
> the web browser control and this works nicely.
>
> Now I'm wondering if I can push the content (html) of a web page (as you
> see from IE when you "View/Source") to a string variable (or whatever) so
> that I can process it.

Try 's = WebBrowser1.Document.documentElement.innerHTML'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>