• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

How to open a webpage using vb.net

How do I open a webpage and parse the results of that page using VB.net?  I want to download and parse data from a page that I open.  I only need code on how to open the page and see the results of the page downloaded.  Thanks in advance.
0
TheChos
Asked:
TheChos
  • 2
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
Dim webClient As New System.Net.WebClient()
Dim content As String = webClient.DownloadString("http://www.experts-exchange.com/Microsoft/Development/Q_28332710.html")

Open in new window


You can parse the content variable with any parsing method that works on a String.
0
 
TheChosAuthor Commented:
Worth an A+.  Very quick response and easy to implement.  Thank you very much!
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
Thanks the programmers who designed the Framework. It's far from perfect, but there is often an easy way to do stuff.

It's just that finding what you need in these 10000+ classes is not an easy task.

It comes easier after 13 years or so :-).
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now