WebControl Treeview Onclick Action

S

shen.chang.cs

Hi, all,

I use .Net V2.0 and WebControl TreeView. I want to have an OnClick()
function to handle user click on certain end nodes but not on other
nodes. Someone suggested to use a Java Scripts:

<SCRIPT lang="jscript">
function MyTreeView_onclick( )
{
Action1("onclick" );
}
var NodeClick=MyTreeView_onclick;
</SCRIPT>


But this will cause whole tree nodes to have this kind action, not part
of nodes. Any idea and suggestion?

The whole idea is to have some kind actions on part of nodes and other
actions on other kind nodes based on the type of nodes or contents of
the nodes.


Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top