views:

48

answers:

3

As the WebBrowser control does not expose a get accessor for the DocumentText property you cannot use it to obtain the HTML that was loaded into this control. Does anyone know a way to obtain the HTML as a string?

I am using .NET CF3.5.

+2  A: 

Use HttpWebRequest class. Here is an example on how to do that.

Pablo Santa Cruz
A: 

Have you tried WebBrowser.Document?

System.Windows.Forms.HtmlDocument document = this.webBrowser1.Document;

It's exposed as:

[BrowsableAttribute(false)] public HtmlDocument Document { get; }

PortageMonkey
A: 

Can't you use the HttpWebRequest?

dferraro