• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Getting the page source from a WebBrowser control...

Hi, I need to simply get the page source from a webbrowser control.  The source should be returned as string preferably.  Anyone know how I can do this?
Thanks,
Josh
0
jsm11482
Asked:
jsm11482
  • 2
1 Solution
 
AzraSoundCommented:
strSource = WebBrowser.Document.documentElement.outerhtml
0
 
DanAvniCommented:
strSource = WebBrowser.Document.body.innerhtml
0
 
jsm11482Author Commented:
I believe that both of these comments work the same, but since AzraSound was first, thats who'll get the points!

AzraSound: Great answer, exactly what I wanted! Thank you for your time!
-Josh
0
 
AzraSoundCommented:
Glad I could help   :-)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now