ThisIsMyUserName
Feb 21st, 2007, 08:42 PM
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?
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?