Hi all,
I'm trying to add a manual onclick event for certain elements in my treeview control, but it's not working.
Here's how I tried it:
tndLevel2.Text = "<a href=""javascript:void(0);"" " & _
"onclick=""alert('bob');"">" & tndLevel2.Text.ToString & "</a>"
So... that didn't work. And now I'm even having a hard time getting rid of the Select action
tndLevel2.SelectAction = TreeNodeSelectAction.None
It still posts back when I click on a node, which is not what I want because this particular treeview is being used inside an Ajax application, so any postback isn't going to go where ASP.NET thinks it's going to go.
Thanks.
_lord_design