Results 1 to 4 of 4

Thread: [RESOLVED] [2.0] How To: View a web site's source code? Source URL = web browser control

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    56

    Resolved [RESOLVED] [2.0] How To: View a web site's source code? Source URL = web browser control

    I'm having trouble with this. I've read through quite a few articles (including the one on MSDN) but it's just not sinking in. None of the articles explain how to do this without involving 5 billion lines of code/references or the articles just don't plain work (errors, with no explanation or 1 line replies from various posts that are incomplete that do not make sense).

    The project I'm working on at the moment is fairly simple, yet this one thing is holding me back big time. Getting the source code from the site that is currently loaded in the web browser control, pref. in the background (saving it to a string, rather than just sending keys to right click -> view source -> open it in notepad) is the goal.

    It's a 2 piece problem, which might be solved with the answer to my initial question.

    The first problem is getting the source code from the current page loaded in a standard web browser control.

    The other problem would be to get the source code from URLs that are embedded in the source code of the initial page (the parsing isn't the problem). The thing is, I wouldn't want to physically goto these addresses in the web browser control. I just want the source code of them (this is the problem). Not using hidden web browser controls would be a plus!

    Little help?
    Last edited by ThisIsMyUserName; Feb 21st, 2007 at 09:50 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
  •  



Click Here to Expand Forum to Full Width