Getting the source from the webbrowser control

  • Thread starter Thread starter Hadi
  • Start date Start date
H

Hadi

Hello,

Posted this in the dotnet.general newsgroup but no answer. Reposted here
now:

----------------------------

I'm using webbrowser control in my application and I am trying to get the
source of the document. I have tried using:

((IHTMLDocument3)axWebBrowser.Document).documentElement.outerHTML;

But this is actually giving me IE representation of the file, not the
original downloaded document. Help does anyone know how to get the original
document from the web browser control?

Thanks
 
* "Hadi said:
Posted this in the dotnet.general newsgroup but no answer. Reposted here
now:

----------------------------

I'm using webbrowser control in my application and I am trying to get the
source of the document. I have tried using:

((IHTMLDocument3)axWebBrowser.Document).documentElement.outerHTML;

But this is actually giving me IE representation of the file, not the
original downloaded document. Help does anyone know how to get the original
document from the web browser control?

Why not use 'WebClient.DownloadFile' to download the file?
 
I'm using webbrowser control in my application and I am trying to get
the
Why not use 'WebClient.DownloadFile' to download the file?

I also need to display the file to the users, thus doing so I need to
download the file twice, once for the display and another for the raw
content of the HTML. If all else fail I may have to do this, but I am trying
to avoid it as much as I can.
 
Back
Top