Meed Help with: .GetAttribute() & .SetAttribute()

vmars316 621 Reputation points

Hello & Thanks ;
I have been working on this since Aug 17th , still no avail .

Code1 below (sub) only changes 1 Link .
Below that is the full pgm Code2 .
How can I get program , to Loop thru all 63 links .
Thanks for your Help..

I have been having trouble Posting .
When I click [ SUBMIT ] up pops a page saying ,
so I will Reply to this post With the CODE portion of this Post .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,403 questions
No comments
{count} votes

2 answers

Sort by: Oldest
  1. vmars316 621 Reputation points

    Still can't Post with code ,
    so I'll try this :

  2. Daniel Zhang-MSFT 9,476 Reputation points

    Hi Vernon Marsden,
    >>How can I get program , to Loop thru all 63 links
    Based on your code, you can use HtmlDocument.GetElementsByTagName() method to retrieve a collection of "link elements" in first.
    Then you can use foreach to traverse all "link elements".
    Here is a simple code example you can refer to.21531-code-example.txt
    Best Regards,
    Daniel Zhang