HtmlElementCollection a = gpcommwindow.Document.GetElementsByTagName("a"); foreach (HtmlElement b in a) { if (b.GetAttribute("href").StartsWith("customer_deals.jsp?index=1")) { string item = b.GetAttribute("href"); int indx = item.Length - 26; string retString = item.Substring(26, indx); //listBox1.Items.Add(retString); item = null; retString = null; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)