473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Question about Microsoft TreeView webcontrol

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
Nov 18 '05 #1
1 1267
the answer is , change TreeNode's url to some javascript, it's ok.

The question is canceled.
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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Patrick Olurotimi Ige | last post by:
I use a TreeView WebControl Menu which i installed from microsoft. But the TreeView XML that can be loaded with the Webcontrol is very specific.For example (The root as to be TREENODES!!):- <?xml...
0
by: clintonG | last post by:
I'm just wondering how rich the TreeView control actually is having never worked with a tree view control. I want to load XML into the tree and I'd like control of the presentation tier by getting...
4
by: Manny Chohan | last post by:
Hey Guys, Quick question....how can we learn to make something like wat we have in MSDN Newsgroups forums. Something like clicking on + sign to see replies and click on a row and display the...
1
by: Hutty | last post by:
I would like to convert the code below into an asp.net application where I can run it via the web. It works ok for vb.net, but my goal is to do it through the browser. I have in a few areas, in...
8
by: Charts | last post by:
I download IEWebControls.exe, and installed it. Installation created IE Web Controls directory. The readme.txt said, 3. Create a /bin subdirectory for the application and copy the file...
0
by: viktor9990 | last post by:
I need to add, delete and move up and down hierarchical information in a treeview webcontrol. (all data is saved in Sql server database and must be shown dynamically in a treeview webcontrol (SDK...
7
by: Jonas | last post by:
Hi. I'm trying to develop a web custom control that uses a programmatically created treeview. My problem is that I get an exception when I try to render the control. With properties do I have to...
1
by: GroupReader | last post by:
When doing a "callback" I normally call a webControl's RenderControl method to get the html for that WebControl. This has always worked great in the past, but it does not seem to work with an...
1
by: GroupReader | last post by:
When doing a "callback" I normally call a webControl's RenderControl method to get the html for that WebControl. This has always worked great in the past, but it does not seem to work with an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.