Solved

How to open a webpage using vb.net

Posted on 2014-01-07
3
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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