Treeview Webcontrol problem
Hi All,
Can any one let me know how to read the attributes of a node in Treview webcontrol using c# languge.
I am trying with the following lines of code, but not working.
void mySelectChangeFn(Object sender, TreeViewSelectEventArgs e)
{
String SelectedNode = "", AttributeValue = "";
SelectedNode += e.NewNode.ToString();
TreeNode Node = new TreeNode();
Node = TreeView.GetNodeFromIndex(SelectedNode);
AttributeValue = Node.FindNodeAttribute("table").ToString();
Response.Write(AttributeValue);
}
I don't know what I am missing here.
Thanks in advance.
Cheers,
Victor.
|