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 :)
Ameet Phadnis (e Tek Global Inc.) wrote:
Can you use the RegisterClientScript function in the
OnSelectedNodeChangedEvent. Basically you write your Javascript function to a
string variable and then use the RegisterClientScriptBlock method. Check the
following link for more details -
http://msdn.microsoft.com/library/de...BlockTopic.asp
--
Ameet Phadnis
Sr. Technical Consultant
e Tek Global Inc.
ASP Alliance Author Page: http://aspalliance.com/author.aspx?uId=44260
"hibaru" wrote:
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