Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames and redirect

Status
Not open for further replies.

tbubbs

Programmer
Mar 30, 2001
26
CA
Hi,
I have a treeview on my left hand frame that allows me to select a node. Depending upon which node is selected I would like to reload the frame on the right hand side. Currently, I am using the vb code behind page to capture my ID and response.redirecting. The problem is that using response.redirect does not work, it reloads the page into my tree view frame.

Any suggestions would be greatly appreciated,
Thanks,
T
 
Hey T,

How are you loading your treeview? One thing to consider would be to create an xml file that is bound to your tree view control. By doing this, you can set the properties of which page is shown, and which frame to show it in, by setting them in the xml.

We have a tree view control that does exactly what you are trying to do. We have a database table that holds all our 'table of contents' items. In the table we include a target value (i.e. _blank, content, etc.), and a url of what we want shown. We have code that will gather all the values, create an xml document, and bind it to the tree view. Once thats done, the nodes act like html hyperlinks: you just click and voila: new page in the desired frame/window.
:)

Someone else asked how to do this in another post, so I think I'll write an FAQ on this next week. Keep an eye out for it.

Jack
 
The treeview is being built dynamically from the code behind page. I get the proper id's for each node, I've also filled in the target property under the tree view, but that does not seem to be read. So, I am trying to figure out a way to populate the right frame from the selected node of the left frame (tree view)
 
You can also put in a

<base target=&quot;main&quot;>

In the Head of the page holding the tree view (if the nodes are links) this will cause all links selected in the page to open in the specified frame - in this case &quot;main&quot;.

Although this does not resolve the problem with your nodes not being recognized properly. I have not used the tree view so I am afraid I am not sure how you can resolve that. Also I would mention that the expansion and collapsing of the tree may not work with the tag I mentioned above, if they are also links.

Good luck! Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top