473,473 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

redirecting within frameset

Ok, I have Main.htm page which contains:
<frameset rows="20%,80%">
<frame scrolling="no" name="top" src="ONE.aspx">
<frame scrolling="yes" name="bottom" src="MAIN.aspx">
</frameset>
and I have another webform TWO.aspx

So the top frame (one.aspx) contains action buttons and
bottom frame is for display purposes.

So when user clicks button on ONE.aspx I use:
Server.Transfer("TWO.aspx")

I would like TWO.aspx to replace MAIN.aspx on the bottom,
but instead TWO.aspx replaces ONE.aspx on top.

Is there any elegant way to do this?

Thank you.

Nov 18 '05 #1
2 1445
This is one of the many reasons that using frames in .NET is generally a bad
idea.
Usually you're better off partitioning logical sections of your page into
web user controls.
Here's more info:
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ebControls.asp

If you must stick with frames then you'll need to use client side javascript
to accomplish your goal.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Serge L" <an*******@discussions.microsoft.com> wrote in message
news:14*****************************@phx.gbl...
Ok, I have Main.htm page which contains:
<frameset rows="20%,80%">
<frame scrolling="no" name="top" src="ONE.aspx">
<frame scrolling="yes" name="bottom" src="MAIN.aspx">
</frameset>
and I have another webform TWO.aspx

So the top frame (one.aspx) contains action buttons and
bottom frame is for display purposes.

So when user clicks button on ONE.aspx I use:
Server.Transfer("TWO.aspx")

I would like TWO.aspx to replace MAIN.aspx on the bottom,
but instead TWO.aspx replaces ONE.aspx on top.

Is there any elegant way to do this?

Thank you.

Nov 18 '05 #2
Hi Serge,

I agree with Steve C., however there are a lot of times when frames are the
best solution. In anycase, a server.transfer won't work.

You can use a regular link:
<a href="two.aspx" target="bottom"> ...

Or some javascript:
parent.bottom.location='two.aspx';

If you want to register the javascript in your codebehind, then check out
RegisterStartupScript function.

-- Alex Papadimoulis

"Serge L" <an*******@discussions.microsoft.com> wrote in message
news:14*****************************@phx.gbl...
Ok, I have Main.htm page which contains:
<frameset rows="20%,80%">
<frame scrolling="no" name="top" src="ONE.aspx">
<frame scrolling="yes" name="bottom" src="MAIN.aspx">
</frameset>
and I have another webform TWO.aspx

So the top frame (one.aspx) contains action buttons and
bottom frame is for display purposes.

So when user clicks button on ONE.aspx I use:
Server.Transfer("TWO.aspx")

I would like TWO.aspx to replace MAIN.aspx on the bottom,
but instead TWO.aspx replaces ONE.aspx on top.

Is there any elegant way to do this?

Thank you.

Nov 18 '05 #3

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

Similar topics

1
by: Peter Royle | last post by:
I need to re-direct site visitors to a new URL, but I don't want that URL to appear in the Address field in the browser. I'm sure I've read somewhere that there is a way to do this, but I can't...
7
by: DeathStorm | last post by:
How do i redirect to a different page without out changeing the address in the address bar but allowing the title to change?
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
1
by: Keith | last post by:
I want to do something which must be very simple. If I open default.asp, it creates my frameset and opens my home page. This is what I want to happen. However, if I create an URL along the...
1
by: Julius Mong | last post by:
Dear all, I have the following: <html> <head> .... </head> <frameset ...> <frame .../> <frameset name="page" rows="60,*" ...> <frame src='top.html' .../>
1
by: Bongolation | last post by:
I've looked in the FAQ and didn't see anything on this. There must be a simple solution to this VERY common problem: A site featuring many text articles and archives has a frameset of two...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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...

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.