Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Find user select node in web treeview

Thread Tools

Find user select node in web treeview

Posts: n/a
Anyone know how to get the TEXT of the node selected by a user in a Web TreeView? I tried the code below but it only gives me the root treenode text. How do I get a child (or sub) node text?

Private Sub tvEnv_SelectedIndexChange(ByVal sender As Object, ByVal e As Microsoft.Web.UI.WebControls.TreeViewSelectEventAr gs) Handles tvEnv.SelectedIndexChange
Dim n As TreeNode
Dim sText As String

sText = tvEnv.Nodes(e.NewNode).Text()

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TreeView node style - for an individual node Homer J. Simpson ASP .Net 5 07-24-2007 10:04 PM
How to find node in TreeView by using string(the same as Node.Text) ? jiing ASP .Net 0 04-27-2007 02:34 AM
xsl variable $node/text() but $node can non-node-set help! Tjerk Wolterink XML 2 08-24-2006 03:28 AM
How to set the node indent property between the parent node and the leaf node ASP .Net 0 02-13-2006 07:11 PM
How to drag a sub-node to another node in TreeView? wolf ASP .Net 0 08-18-2004 11:51 PM