469,929 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

Html sourcecode

Hi,

Is there anyone knows howto obtain HTML sourcecode in a string.
In VB6 I used "inet" to do the job but it won't work in VB.net.

Thank

Dave
Nov 21 '05 #1
4 1051
"Dave" <ne**@nend.nl> schrieb:
Is there anyone knows howto obtain HTML sourcecode in a string.
In VB6 I used "inet" to do the job but it won't work in VB.net.


<URL:http://dotnet.mvps.org/dotnet/code/net/#InternetLoadFile>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
Dave,

This sample makes it possible to get it and to process it.

http://www.windowsformsdatagridhelp....f-56dbb63fdf1c

I hope this helps,

Cor
Nov 21 '05 #3
well i do it like this
Dim myWebClient As New WebClient
Dim responseArray As Byte() =
myWebClient.DownloadData("http:\\www.google.nl")
MsgBox(Encoding.UTF8.GetString(responseArray))
you need these two imports

Imports System.Text
Imports System.Net
"Dave" wrote:
Hi,

Is there anyone knows howto obtain HTML sourcecode in a string.
In VB6 I used "inet" to do the job but it won't work in VB.net.

Thank

Dave

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Mark Buch | last post: by
7 posts views Thread by Christian Schmitt | last post: by
26 posts views Thread by Tobias Wendorff | last post: by
27 posts views Thread by prt7u | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.