Solved

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

Posted on 2011-03-02
4
2,172 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
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
Tuyau2poil earned 125 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
cannot connect to sqlserver 8 34
get column names from table in vb.net 8 49
How to limit User Input 2 27
System.net.Sockets Error 5 26
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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