Solved

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

Posted on 2011-03-02
4
2,166 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Definitions and default visual studio colors 5 65
vb.net 2 44
Set value of dynamically created checkboxlist 2 34
vb.net help 4 31
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 …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

803 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