By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
461,997 Members | 497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 461,997 IT Pros & Developers. It's quick & easy.

regarding treeView plz help its urgent

P: 24
i have a webpage where i have parsed all the details using html parser

now the parsed document is in html format

i have now converted this document into a treeview

now the problem is i have to extract all the treenodes or tagname starting with

<A href...>

that is i have to extract all the tags irrespective of the parent child relationship

help on this regard

am running short of time

the following are the code i have used to form the treeview

plz find a solution for my problem


void BuildTree(HtmlNodeCollection nodes, TreeNodeCollection treeNodes)


foreach (MIL.Html.HtmlNode node in nodes)

TreeNode treeNode = new TreeNode(node.ToString());
treeNode.Tag = node;


if (node.GetType() == typeof(MIL.Html.HtmlElement))

treeNode.SelectedImageIndex = 0;

treeNode.ImageIndex = 0;


HtmlElement)node).Nodes, treeNode.Nodes);


treeNode.SelectedImageIndex = 1;





find me an answer
Mar 28 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.