Find user select node in web treeview

Discussion in 'ASP .Net Web Controls' started by Tim_k, Jun 29, 2004.

  1. Tim_k

    Tim_k Guest

    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?
    Thanks,
    Tim

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

    sText = tvEnv.Nodes(e.NewNode).Text()
    Tim_k, Jun 29, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wolf
    Replies:
    0
    Views:
    550
  2. Replies:
    0
    Views:
    1,442
  3. Tjerk Wolterink
    Replies:
    2
    Views:
    1,418
    Dimitre Novatchev
    Aug 24, 2006
  4. jiing
    Replies:
    0
    Views:
    2,318
    jiing
    Apr 27, 2007
  5. Homer J. Simpson

    TreeView node style - for an individual node

    Homer J. Simpson, Jul 23, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    8,886
    Homer J. Simpson
    Jul 24, 2007
Loading...

Share This Page