Response.Redirect() and Frames

  • Thread starter Thread starter David P. Donahue
  • Start date Start date
D

David P. Donahue

I have a page that's viewed within an Iframe. This page has some code
behind it, including a reference to another class in the project which,
depending on certain conditions, may perform a Response.Redirect().
However, the redirect only occurs within the Iframe. Is there a way to
get it to redirect the parent frame (_top) instead?


Regards,
David P. Donahue
(e-mail address removed)
 
David,

What you would have to do is in the new page that the response is
redirected to, use a piece of javascript to set the location of the document
at the top level to the new page you want to be redirected to.

Hope this helps.
 
Back
Top