Results 1 to 3 of 3

Thread: [RESOLVED] how to view updated code of dynamically changed webpage without refreshing?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    Resolved [RESOLVED] how to view updated code of dynamically changed webpage without refreshing?

    In webbrowser, I am visiting a website that lists 10 items per page, I select "20 items per page". The webpage dynamically updates to display a list of 20 items.

    However when I view the webpage code it still shows 10 items. If I refresh the webbrowser, the code will show 20 items.

    Is there a way to view the updated webpage code without refreshing?

  2. #2
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Re: how to view updated code of dynamically changed webpage without refreshing?

    If you loop through the actual HtmlElementcollection of that browser control, I think all 20 will be there.

    Justin
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    Re: [RESOLVED] how to view updated code of dynamically changed webpage without refres

    Yes that worked, thank you!

    vb Code:
    1. Dim webpageDoc As HtmlDocument = WebBrowser1.Document
    2.         Dim webpageEls As HtmlElementCollection = webpageDoc.GetElementsByTagName("a")
    3.         For Each el As HtmlElement In webpageEls
    4.             Debug.WriteLine(el.OuterText)
    5.         Next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width