how to call aspx file from one frame to another frame in c#

D

DNB

i want to know how to call aspx file from one frame to another frame in c#.
i hve made one aspx file in which i hve two frames. on one frame i hve made
the buttons i want on click of button new file will open in another frame.

Following is my frameset.
When user clicks some button in LeftFrame...In code behind I would like to
open new file in Right frame
<frameset borderColor="darkblue" rows="25,96%" frameBorder="1">

<frame name="header" src="TreeViewHeader.aspx" frameBorder="no" noResize
scrolling="no">

<frameset cols="150,*" id="set2" border="true" framespacing="1">

<frame name="LeftFrame" src="TreeViewLeftFrame.aspx" frameBorder="no">

<frame name="RightFrame" src="TreeViewRightFrame.aspx" frameBorder="no">


<noframes>

</frameset>

<pre id="p2">

</pre>

<p id="p1">

This HTML frameset displays multiple Web pages. To view this frameset, use a

Web browser that supports HTML 4.0 and later.

</p>

</noframes>

</frameset>


Thanks
DNB
 
D

DNB

Thanks I was able to figure out this:

string frameScript = "<script language='javascript'>" +
"window.parent.frames(2).location='" + url + "';</script>";

Page.RegisterStartupScript("FrameScript", frameScript);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top