473,385 Members | 1,342 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,385 software developers and data experts.

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 2288

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
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
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
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
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
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
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....
2
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.