473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1170
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: DvDmanDT | last post by:
Hello, I have an intresting problem: I want to let users upload sourcecode and then compile it using my cygwin gcc... But one thing at a time... I can't get that gcc to execute... ...
12
by: Mark Buch | last post by:
Hi, is it possible to protect the python sourcecode? I have a nice little script and i dont want to show everbody the source. Im using python on a windows pc. Thank you - Mark
7
by: Christian Schmitt | last post by:
Hi, I want to write a script that (run from a file on the local HD) reads another local html-file into a variable, then make some changes to it, and then output the result in a way that makes it...
26
by: Tobias Wendorff | last post by:
Hi there, could anybody please do me a big favour and compile the latest sourcecode of HTML Tidy (DLL and EXE)? http://tidy.sourceforge.net/src/tidy_src.tgz Visual C++ files are in...
0
by: panik | last post by:
Hi, retreiving the source code from an instance of the AxWebBrowser component, using getBody(), through an IHTMLDocument2 object, makes the sourcode look very bad: All tags are in uppercase,...
5
by: LP | last post by:
Hi, After html of .aspx page has been generated, but before it has been sent to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do...
27
by: prt7u | last post by:
Howdy, I've started back afte a very long time of working with web pages for an organization that I am affiliated with (personally not professionally). Seeing that technology has advanced a lot...
10
by: freddie007 | last post by:
The error seems to be error due to space or character set ========================================== Error Executing Database Query. Incorrect string value: '\xC2\x96 Jan...' for column 't61'...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.