russau
russau

Reputation: 9088

Accessing the HTML contents of WP7 WebBrowser control

Once I've navigated to a URL, can I retrieve the HTML that's inside the WebBrowser control?

Maybe there are some javascript hacks I can do via InvokeScript and ScriptNotify

Upvotes: 3

Views: 2217

Answers (1)

johnhforrest
johnhforrest

Reputation: 991

Yes - use this function:

WebBrowser.SaveToString()

http://msdn.microsoft.com/en-us/library/microsoft.phone.controls.webbrowser.savetostring(v=vs.92).aspx

Upvotes: 8

Related Questions