.Net 2 Treeview event handling

Discussion in 'ASP .Net Web Controls' started by Eric Yeoman, Jul 11, 2005.

  1. Eric Yeoman

    Eric Yeoman Guest

    Hi,

    I'm trying to catch when when a node in the tree is checked - or unchecked.
    I am doing this in the code behind page as follows.

    As I add nodes to the tree, I use:

    newNode.SelectAction = TreeNodeSelectAction.Select
    node.ChildNodes.Add(newNode)

    The function is defined:

    Protected Sub tvAppPages_SelectedNodeChanged(ByVal sender As Object, ByVal e
    As System.EventArgs) Handles tvAppPages.SelectedNodeChanged
    Dim strTestString As String
    strTestString = "wibble"
    End Sub


    Is there anything I have missed out or misunderstood?

    TIA

    Eric.
     
    Eric Yeoman, Jul 11, 2005
    #1
    1. Advertisements

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. Makarand

    ASP.NET Event handling.

    Makarand, Jul 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    475
    Makarand
    Jul 24, 2003
  2. =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=

    dynamic user control event handling (VS.NET 2003 Ent)

    =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=, Nov 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,797
    =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=
    Nov 28, 2005
  3. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    25,243
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  4. tanya foster
    Replies:
    1
    Views:
    3,745
    tanya foster
    Jun 5, 2006
  5. abargaddon
    Replies:
    0
    Views:
    1,253
    abargaddon
    Jan 17, 2008
  6. Per Salmi

    TreeView not rendering nodes? Cacheing of a TreeView

    Per Salmi, Oct 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    664
    Steve Drake
    Oct 15, 2003
  7. Ionutz
    Replies:
    2
    Views:
    816
    Ionutz
    Oct 23, 2005
  8. stepkurt

    Microsoft Treeview vs System Treeview

    stepkurt, Aug 29, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    633
    Teemu Keiski
    Sep 2, 2007
Loading...