Re: Get Array From Web Page
Parse the HTML source of the page for the "<option>" tags. The .InnerText (I believe) property will hold the values you need.
You can add them to an array or a List as you parse.
Here's a quick reference for parsing the HTML: http://stateofidleness.com/2011/01/l...trieve-values/
Re: Get Array From Web Page
That works, except that there are 6 select boxes on the page, and I only want the values from one of them. Is there a good way to narrow down which <option> tags i want to select?
Re: Get Array From Web Page
Of course there is. Could you give a link to the page you're wanting to do this on?
Re: Get Array From Web Page
Actually, i just figured it out!
Code:
WebBrowser1.Document.GetElementById("copyClient").GetElementsByTagName("option")
It grabs all the option elements in the copyClient dropdown box. Thanks!
Re: Get Array From Web Page
Re: Get Array From Web Page
Glad you figured it out. :)