none
vb.net get data from webpage (tr & td) RRS feed

  • Question

  • from image below, i want to get the data from the TD which is under TR of table



    thanks in advance..

    Wednesday, September 5, 2018 8:27 AM

All replies

  • Hi,

    Please describe your problem in detail and provide image.

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, September 6, 2018 1:07 AM
  • Hi,

    use WebBrowser control :

    Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load WebBrowser1.Navigate("https://www.danis.be/danisprijzen/") WebBrowser1.Visible = False End Sub Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted 'Dim ElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("TagName")

    Dim ElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByID("ControlID") For Each item As HtmlElement In ElementCollection ListBox1.Items.Add(item.InnerText) Next End Sub End Class


    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, September 26, 2018 5:51 AM