lgriess 0 Light Poster

How can I add an OnClick event to a leaf node of a TreeView, using the standard asp:TreeView object?

For those of you that need code see example at:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenodeeventargs%28VS.80%29.aspx

This is what I'm using as my sample but instead of the line:

NewNode.SelectAction = TreeNodeSelectAction.None;

in my code here is what I coded:

              NewNode.SelectAction = TreeNodeSelectAction.Select;
                if (ReportList.SelectedNode != null)

                {
                    PopulateNextList(NewNode);
                }

however, the code never calls PopulateNextList function.

Any help would be most appreciated.

Dean

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.