|
-
Mar 4th, 2008, 06:18 PM
#1
Thread Starter
New Member
vb.net reading a website
In vb6 i had a program that i made to read a true or false statement on the website then i had vb6 check that statement. but now that im using vb.net i have no idea how to do that. any ideas thanks
-
Mar 4th, 2008, 06:26 PM
#2
Re: vb.net reading a website
I have no clue what you mean by "read a true or false statement and then check the statement". If you're looking to download the HTML of a website, use the WebClient:
vb Code:
Dim Html As String
Using client As New System.Net.WebClient
Html = client.DownloadString("http://www.google.com")
End Using
-
Mar 4th, 2008, 06:38 PM
#3
Thread Starter
New Member
Re: vb.net reading a website
well here is how i had it set up from what i remember it was a few years ago.
i had
vb Code:
dim websitetext as sting 'connect to the website it reads the site if websitetext = true then do something end if
-
Mar 4th, 2008, 06:40 PM
#4
Re: vb.net reading a website
What do you really mean by "reads the site"?
-
Mar 4th, 2008, 06:53 PM
#5
Thread Starter
New Member
Re: vb.net reading a website
Well the site set up had no html, it was just a word i set the program to read True or False from the website.
-
Mar 4th, 2008, 06:55 PM
#6
Re: vb.net reading a website
Well if there is no html in the file, only a word (True/False), then download it like i showed you and compare it:
vb Code:
If DownloadedWord = "True" Then
'Do something
Else
'Do something else
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|