Solved

How to open a webpage using vb.net

Posted on 2014-01-07
3
295 Views
Last Modified: 2014-01-07
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
Comment
Question by:TheChos
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 39763276
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
 

Author Closing Comment

by:TheChos
ID: 39763362
Worth an A+.  Very quick response and easy to implement.  Thank you very much!
0
 
LVL 40
ID: 39763643
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I need help converting a bitmap to an image in VB.Net 1 32
Alert on Server memory 2 19
Modal Popup Extender control 1 18
Sql server insert 13 27
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question