Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i need to move data from table tag to list i'm using web browser control...but its not working

html
-------------

XML
<table border="0" cellspacing="0" cellpadding="0" width="100%" summary="">
  <tbody>
    <tr>
      <td align="left" valign="top" class="small"><a href="customer_deals.jsp?index=1" class="udrlinesmall">FIDELITY NATIONAL FINANCIAL, INC.</a> <br>&nbsp;&nbsp;&nbsp;(Y10070072898)</td>
      <td align="right" valign="top"><a href="show_global_customer.jsp?index=1" class="udrlinesmall"><img src="/images/hpweb_1-2_info_icn.gif" border="0" alt="detail for FIDELITY NATIONAL FINANCIAL, INC."></a></td>
    </tr>
  </tbody>
</table>





my code


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
Comments
Herman<T>.Instance 9-Mar-15 7:07am    
What do you mean with: 'move data from table tag to list'?

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