How to get the clientid a treenode object in a treeview
Posted on 2007-10-04
I am using an asp.net treeview control. I need to find out what the clientid of a given TreeNode object is. To get the clientid of the treeview itself is as simple as calling treeview.clientid, however, there doesn't seem to be such a property propery for a treenode object. I have been searching everywhere to no avai.l. Any help on this is greatly appreciated.
This is how I am adding the nodes to the tree:
Dim Rootnode As New TreeNode("TheRoot", "TheRoot")
Dim childNode As New TreeNode("cars", "1")
'Trying to get the clientid of this node
childNode As New TreeNode("boats", "2")