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