473,657 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using frames with ASP.NET 2.0 and TreeView

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 of the page. The best and easiest way I've found todo
this is with using frames (any suggestions on other ways todo this I'd
love to hear about it).

PROBLEM
I'm having trouble getting all links in my tree view to populate my
targeted frame.
Specifically, when I click on the "mail.google.co m" link, it opens in
"_self", not the "showframe" .

Is there something wrong with my code (see below)? Is there something
in the Google page that makes it not open in frames?

Thanks for your attention to this...
Here's the sample code, 2 files, I am using:
*************** *************** *************** *************** *************** **********mainF rame.aspx:***** *************** *************** *************** *************** *************** *****

<%@ Page Language="VB" AutoEventWireup ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title />
</head>
<frameset cols="15%, *">
<frame name="toc" src=Default.asp x />
<frame name="showframe " />
</frameset>
</html>
*************** *************** *************** *************** *************** **********Defau lt.aspx******** *************** *************** *************** *************** *************** **

<%@ Page Language="VB" AutoEventWireup ="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:TreeView ID="TreeView1" runat="server">
<Nodes>
<asp:TreeNode
Text="mail.goog le.com"
NavigateUrl="ht tp://mail.google.com "
Target="showfra me">
<asp:TreeNode
Text="http://espn.com"
NavigateUrl="ht tp://espn.com"
Target="showfra me">
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode
Text="http://cnnsi.com"
NavigateUrl="ht tp://cnnsi.com"
Target="showfra me">
<asp:TreeNode
Text="http://drudgereport.co m"
NavigateUrl="ht tp://drudgereport.co m"
Target="showfra me">
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView
</form
</body
</html>

Jan 2 '07 #1
0 6741

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

Similar topics

6
3078
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. Is this doable? Also, it seems that the TreeView nodes do not have a click event. Is that correct? Thanks, J.S.
1
1541
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 html code is shown below. <mytree:treeview id="TreeView1" runat="server"
0
8420
by: rahulkate | last post by:
Hello Everybod I have a problem hope you can help me out I have a treeview and on the selectedindexchange event of the treeview I want to execute some code from the vb codebehind file and a javascript function which is there in the HTML file.I am using VB.NET as the language. Now If I want to execute both these codes I need to click the nodes twice. I had Added the attributes to the treeview. something like this in the Page_load even...
3
2112
by: jm | last post by:
I have a master framesetpage that calls two .aspx pages. Each page needs parameters passed to it. The left side is a treeview. The right side is the detail. I cannot find an asp:frame or the like. I need to be able to have the master frameset so that when it initially pulls up the two source frames it sends them the parameter in the querystring. Make Sense?
0
1163
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 correct page. My treeview shows in bold the selected node. Now when my site starts, the mainFrame displays a list of categories (also
8
7902
by: J.S. | last post by:
I was under the impression that frames could be used in Windows forms in earlier version of VB. However, in VB 2005 Express I don't see any such tool/control. Is SplitContainer used for this purpose in VB 2005? I want to create a frame in a Windows form because I'd like button clicks on the left side of the form to change the form elements shown in the right side of the form. Would each of the buttons on the left require a...
0
1376
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 a fold and that is where i am stuck. Private Sub rtb_TextChanged(ByVal sender As System.Object, ByVal e As
5
1527
by: sudidelaravi | last post by:
I have two frames in a frameset.Left frame has treeview.Right frame has the aspx pages w.r.t nodes of treeview control. When i perform some operation in the right frame, left frame(treeview control) should also be reloaded(refreshed) along with the right frame using javascript.
2
2095
by: hzgt9b | last post by:
I've written a simple javascript page that parses an XML file... (Actually I just modified the "Parsing an XML File" sample from http://www.w3schools.com/dom/dom_parser.asp) The page works great standalone... but when I try to make this work under frames I get "Error: Object required" when the following line executes: xmlDoc.getElementsByTagName("to"); The standalone file is named treeView.htm (attached). You should be
0
8395
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
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 we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.