Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to read a data from table using webbrowser control and store it to listbox in c#

FIDELITY NATIONAL FINANCIAL, INC.


   (Y10070072898)

C#
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;
                }
            }
        }


please help
Posted
Updated 24-Feb-15 20:00pm
v6
Comments
Suvendu Shekhar Giri 25-Feb-15 0:10am    
format the question/code first so that someone can understand your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900