Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Load .aspx page on another frame from TreeView Event

Thread Tools

Load .aspx page on another frame from TreeView Event

Sangeeth Sangeeth is offline
Junior Member
Join Date: Jun 2009
Posts: 2
Hi All,

See my Default Page HTML code:

<frameset cols="25%,*">
<frame name="TreeView" src="TreeView.aspx" />
<frame name="DataDisplay" src="DataDisplay.aspx" />

I have a treeview (treeview nodes are created dynamically from a database) in TreeView.aspx. When the user clicks on the TreeNode, it should open some another aspx page in the right side frame called "DataDisplay".

I am using SelectedNodeChanged event in TreeView.aspx. Is this the right event to use? How to initiate aspx page in the second frame?

SelectedNodeChanged Event code:
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
string strSelected = ((TreeView)sender).SelectedNode.Value.ToString();

switch (strSelected)
case "Node1":
// Response.Write(strSelected);
// What code should I put here...

Can anyone help me?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Javascript function upon Page Load from Page Load event handle Matcon ASP .Net 3 05-28-2008 05:15 PM
how load one frame before another in aspx page Lady ASP .Net 3 11-25-2005 10:35 AM
Referring to a frame's content from another frame Microsoft ASP .Net 3 10-04-2004 06:35 AM
Manipulating control in one frame from another frame, how? Søren M. Olesen ASP .Net 0 11-13-2003 05:37 PM
how to redirect from 3 frame page to single page frame? Zalek Bloom ASP General 1 09-23-2003 02:23 PM