Re: Load html (Newbie)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Apr 7, 10:13 am, "Adriano" <adri...@xxxxxxx> wrote:
Hello,

I need to load an HTML code of a remote page in a string variable, using VS
2003 and VB.NET.
Can someone tell me a way I can do that?

thanks in advance!

Adriano

Hi Adriano,
You'd better explaing what you want to do, but i assume this will help
you to find out:
Dim web As New System.Net.WebClient
web.DownloadString("http://www.google.com";).ToString

which receives the whole HTML(plus scripts) code in string type.

Hope this helps,

Onur Güzel
.



Relevant Pages

  • Load html (Newbie)
    ... I need to load an HTML code of a remote page in a string variable, ... Adriano ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Decoding html pages
    ... the HTML code that the PHP engine produces *from* the raw html code and that ... That's the case with practically any PHP "page" (or any by a ... server-side script generated page for that matter). ... Of course the script does load, when you load the proper page (else it would ...
    (comp.lang.javascript)
  • Re: Link to file in HTML Viewer or IWebBrowser2 control problem
    ... Load an html page with the link to the jpeg file: ... Set the html code as a string using CHtmlCtrl::SetHTML(LPCTSTR ...
    (microsoft.public.vc.mfc)
  • Re: Can GD load an image from another php script?
    ... going to create a php script that just calls that function so I can load the image directly from html code, how can it help me with imagecreatefrompng? ... Celentano) ...
    (comp.lang.php)
  • Using SWF or applet Java in PHP Nuke
    ... I have a SWF movie with the correlate html code to load it. ... this code as a .php file ... ...
    (alt.php)