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

  • Thread starter S. Justin Gengo
  • Start date
S

S. Justin Gengo

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
 
S

Scott Hamlin

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.href =
'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?
 
C

Charlie@CBFC

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
 

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