473,503 Members | 11,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TreeView and Frames...

Using:
ASP.Net 2.0
C# for code behind

I'm slowly migrating a project into the .Net realm from ASP. One of the
first things I've been asked to do is replace a tree navigation control
(java applet), with the ASP.Net TreeView.

The tree resides in a frame, and when a link is clicked, has to change
the HREF of another frame. Currently, the applet calls some javascript
that says
parent.frameContent.document.location.href = "newURL";

How would I do this with the treeview? The Target property seems to be
more for when a treeview control exists in a page, linking to contents
either in a named iframe, or one of the special "_" prefixed locations.

I can't get it to go back to the parent frame, then forward to my
contents frame.

I have tried (and failed with):
- _myTree.Target = "frameContent";
- _myTree.Target = "parent.frameContent";
- _myTree.Target = "parent.frameContent.document.location.href";
- _selectedNode.Target = "frameContent";
- _selectedNode.Target = "parent.frameContent";
- _selectedNode.Target = "parent.frameContent.document.location.href";
- referencing javascript from the target with something like
"NavigateTo(...)" which them assigns the
parent.frameContent.document.location.href to the new page.
Any help would be appreciated.
Thanks.
Daniel.
May 10 '06 #1
1 1803

This works
_myTree.Target = "frameContent";

I wasn't putting anything in the NavigateUrl property!!! Duhhh...
Dan Bass wrote:
Using:
ASP.Net 2.0
C# for code behind

I'm slowly migrating a project into the .Net realm from ASP. One of the
first things I've been asked to do is replace a tree navigation control
(java applet), with the ASP.Net TreeView.

The tree resides in a frame, and when a link is clicked, has to change
the HREF of another frame. Currently, the applet calls some javascript
that says
parent.frameContent.document.location.href = "newURL";

How would I do this with the treeview? The Target property seems to be
more for when a treeview control exists in a page, linking to contents
either in a named iframe, or one of the special "_" prefixed locations.

I can't get it to go back to the parent frame, then forward to my
contents frame.

I have tried (and failed with):
- _myTree.Target = "frameContent";
- _myTree.Target = "parent.frameContent";
- _myTree.Target = "parent.frameContent.document.location.href";
- _selectedNode.Target = "frameContent";
- _selectedNode.Target = "parent.frameContent";
- _selectedNode.Target = "parent.frameContent.document.location.href";
- referencing javascript from the target with something like
"NavigateTo(...)" which them assigns the
parent.frameContent.document.location.href to the new page.
Any help would be appreciated.
Thanks.
Daniel.

May 10 '06 #2

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

Similar topics

6
3067
by: J.S. | last post by:
I have a TreeView control in the left panel of a SplitContainer. When I click on various nodes in the TreeView I would like different sets of buttons and textboxes to appear in the right panel. ...
1
1535
by: Reetu | last post by:
Hi All, I have a Frameset.htm page containing LeftFrame and RightFrame. At design time I have set the webform1.aspx page to the LeftFrame. The webform1.aspx page displays a treeview. The...
5
2957
by: Andy Mackie | last post by:
No reply in webcontrols newsgroup - does anyone here have suggestions on how to do an MSDN library style of page using ASP.NET webforms ? On the left I want a treeview, separated with a splitter...
0
1156
by: Bart Schelkens | last post by:
Hi, I have this website and it consists of 3 frames. In my leftFrame I have a treeview. In my mainFrame I display the corresponding page. If I click in my treeview, my mainFrame displays the...
0
1363
by: mookie | last post by:
m looking to create something similar to #region and #endregion using treeviews the problem is that instead of #region, i am using ;fold and ;endfold i am also allowed ot have a fold within...
6
11658
by: cyriel1920 | last post by:
Hi, I use the selectednodestyle with a white background so the user can see which item was chosen in the treeview navigation. The nodes have a navigateURL with a target to another frame....
1
2292
by: Dan Bass | last post by:
Using: ASP.Net 2.0 C# for code behind I'm slowly migrating a project into the .Net realm from ASP. One of the first things I've been asked to do is replace a tree navigation control (java...
2
2299
by: Peter Afonin | last post by:
Hello, I've created a web application using Visual Studio 2005. I have a treeview control there. When the user expands it and clicks on the link, the treeview collapses automatically. Is it...
2
1962
by: celoftis | last post by:
Using VS2005, ASP.NET. Check out the tree view on this page: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx When you hover over the border between the two...
0
6734
by: celoftis | last post by:
Using VS2005, VB code behind, BACKGROUND I'm trying to set up a page with a TreeView of links on the left hand side of my page - when clicked I want the links to open in the remaining portion...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7361
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
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
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...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.