Treeview control to call javascript function

  • Thread starter Thread starter hibaru
  • Start date Start date
H

hibaru

Hi

Is it possible to call a javascript function from a treeview controls
OnSelectedNodeChanged event? Something similar to a OnClientClick event
for buttons? I cant seem to find anyway to do this, any help
appreciated
Thanks
 
Thanks Ameet Phadnis

RegisterClientScriptBlock is probably the only other way to do it but I
dont want any post backs, and I think I have found what I wanted.

Since Im dynamically populating my treeview I just need to set the
NavigateUrl to the function I want to call and thats it. :) and no post
back as well.

node.NavigateUrl = "javascript:alert('here');";

Thanks again for the quick reply :)
 
Back
Top