473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Call to Response.Redirect puts page in frameset, need page to replace frameset...

Hi:

I have a button in an .aspx page in banner section of a frameset. It runs a
response.redirect to another page. The problem is page loads into active
frameset. I would like page to replace frameset entirely. How do I do
this?

Thanks,
Charlie


Nov 18 '05 #1
2 2221
Charlie,

You can't do that with a response.redirect. (of course you already know that
or you wouldn't have posted this question...)

You're best bet is to create a link that targets "_top":

<a href="SamePageAsInFrame.aspx" target="_top">Lose Frame</a>

But, do you need to do any server side processing when the link is clicked?
If so then a different solution is in order. If you don't need to do any
server side processing then the link above is all you need.
--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:u7*************@TK2MSFTNGP12.phx.gbl...
Hi:

I have a button in an .aspx page in banner section of a frameset. It runs a response.redirect to another page. The problem is page loads into active
frameset. I would like page to replace frameset entirely. How do I do
this?

Thanks,
Charlie

Nov 18 '05 #2
I don't know the exact syntax, but when I need to manipulate frame in code
behind pages, I do something like this:

Dim strJS As String = "<script
language='JavaScript'>parent.picFrame.location.hre f =
'right.aspx';</script>"
Response.Write(strJS)

Maybe something like that would work, just instead of specifying the frame
to refresh, point to a new page?

"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:u7*************@TK2MSFTNGP12.phx.gbl...
Hi:

I have a button in an .aspx page in banner section of a frameset. It runs a response.redirect to another page. The problem is page loads into active
frameset. I would like page to replace frameset entirely. How do I do
this?

Thanks,
Charlie

Nov 18 '05 #3

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

Similar topics

13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
4
by: David GB | last post by:
If a page runnning in a frame does a redirect, the new page is loaded into the same frame. How do I do a redirect that 'looses' the frameset? In html, you can create a link with "target=_top"...
4
by: Max Dupenois | last post by:
I've seen numerous articles with similair (similar sp?) titles to this in my search.. unfortunately none of them seem to contain what i want, (or if they do i need someone to point out my stupidity...
3
by: Steve | last post by:
I have a page which has some frames. After processing one of the pages I want to redirect to another frameset. However, when I use Response.Redirect I end up with a frameset with the frameset...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
2
by: news://news.microsoft.com/microsoft.public.de.germ | last post by:
Hallo! Ich habe ein Frameset mit 3 Frames. Im 1. Frame wird eine ASPX-Seite geöffnet. In dieser werden einige Steuerelemente angezeigt. Nun soll bei bestimmten Benutzeraktivitäten eine andere...
0
by: Clas | last post by:
Hello! I have written a javascript which posts back a page with __doPostBack if a user presses the escape-button on the keyboard. Then in Page_Load I´m doing a response.redirect to another page....
2
by: Charles A. Lackman | last post by:
Hello, I have an ASPX page that is storing data into a session Variable: Session("Name") = "Chuck" When the User clicks "Next" on the page, it naviages to "Details.aspx", Details.aspx has two...
15
by: KBuser | last post by:
I recently developed an internal website with various queries against our SQL server. I added buttons with Response.Redirect. These buttons do not work with Internet Explorer, however when using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...

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.