Question about Microsoft TreeView webcontrol

E

Edward

hello, everyone,

I build one tree menu using TreeView webcontrol , everything is ok, from
tree node click, one sub-frame(main) can refresh its content with new url.

My question is, I have another sub-frame(message), message frame and main
frame cannot be shown at the same time, so I wonder, when the message frame
is visible, how can I add the Javascript to tree-node click, to switch the
main frame to visible ?

in my code, I've build two JavaScript funtion as SwitchToMessage(),
SwitchToMain(). Where can I add "SwitchToMain" before tree-node click
event ?

I tried to use " node.Attributes.Add("onclick",
"javascript:SwitchToMain()", but it seems that node doesn't have
Attributes.

Please help me, and if someone have the alternate solution, please notify
me, Thanks!

Wait online,

Edward
 
E

Edward

the answer is , change TreeNode's url to some javascript, it's ok.

The question is canceled.
 

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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top