|
-
November 4th, 2010, 09:30 AM
#1
source code from WebBrowser Control: Possible?
is it possible to retrieve a page's source code after using:
Code:
browser.Navigate(new Uri(URL));
if so, Examples would be GREATLY appreciated... Thanks
-
November 4th, 2010, 05:56 PM
#2
Re: source code from WebBrowser Control: Possible?
http://en.csharp-online.net/Configur...rowser_Control
Couldn't you just use the document property to get a htmldocument object of the current webpage and convert that to a string? If you are just looking to display the source code this should work.
Last edited by jackorocko; November 4th, 2010 at 05:58 PM.
-
November 5th, 2010, 03:50 PM
#3
Re: source code from WebBrowser Control: Possible?
Would WebBrowser.DocumentText not do the trick?
http://msdn.microsoft.com/en-us/libr...=VS.80%29.aspx
Code:
string html = browser.DocumentText;
Last edited by Zaccheus; November 5th, 2010 at 03:55 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|