Path of TreeNode
How do I get the full path of TreeNode, all the way from the Root node?
Each TreeNode has a property ValuePath which gives the full path of TreeNode from the Root node. All node values, from the Root node, are appended with a separator. Each node value is separated by the PathSeparator attribute of TreeView control. Here is an example:
<asp:TreeView ID="tvw" runat="server" PathSeparator="\"> <Nodes> <asp:TreeNode Text="C:" Value="C:"> <asp:TreeNode Text="Abc" Value="Abc"></asp:TreeNode> </asp:TreeNode> </Nodes> </asp:TreeView>
void tvw_SelectedNodeChanged(object sender, EventArgs e) { Response.Write(tvw.SelectedNode.ValuePath); }
Posted by Vijay on 13-May-2010 01:18 PM
Category : ASP.NET
Category : ASP.NET



Please try the jQuery plugin for TreeView: http://docs.jquery.com/Plugins/Treeview
I want to get the same functionality with php and jquery, any tip, thanks, phycomp01@gmail.com