[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Get innerText from HTML table by looping using GetElementByID in VB.NET

Posted on 2011-03-02
4
Medium Priority
?
2,236 Views
Last Modified: 2012-08-13
Need code for VB.NET Windows Form to find innerText values in HTML table on my favorite web site using GetElementByID to find table.
0
Comment
Question by:investalert
[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
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
Tuyau2poil earned 500 total points
ID: 35023353
use this function to get web page into a  string. after that, you will find what you want by using standard character crtieria and vb string methods.

Shared Function getpage(ByVal url As String) As String
        Dim WC As New System.Net.WebClient()
        Dim s As System.IO.Stream = WC.OpenRead(url)
        Dim sr As New System.IO.StreamReader(s)
        Return sr.ReadToEnd()
    End Function

0
 

Author Comment

by:investalert
ID: 35047114
Thanks for your replay, I will trying it out in the next couple of days and report back.
0
 

Author Comment

by:investalert
ID: 35245155
Sorry for the delay, had some things come up. I will look at this by the end of the week and report back. Thanks.
0
 

Author Closing Comment

by:investalert
ID: 35500588
As one needing to upgrade and educate myself to using VB.net I had to understand the difference between the Web browser control and Web client when using Win forms. Having done that and using the web client solution provided by calling the function from the form 1_load event and loading it into a multiline text box I can see all HTML from my selected URL. Now I can use a parsing method to get the desired webpage content.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 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