0
votes

Is it possible that when I select a node in TreeView then in return I will get the physical path from Parent Nodes to Selected Child Node? like ' ~/ParentNode1/ParentNOde2/SelectedChildNode'

2
What is a physical path in your case please show a tree? Is it a file system objects tree?sll
I mean to say like ~/ParentNode1/ParentNOde2/SelectedChildNodeLearningAsp

2 Answers

1
votes

For ASP.net use the ValuePath property of the SelectedNode

For Windows Forms, use the FullPath Property of the SelectedNode

NOTE: The FullPath Property will use the TreeView.PathSeparator property to decide what to separate the nodes with. Default character is '\'

0
votes

I got it , TreeView1.SelectedNode.ValuePath.ToString()