Response.Redirect() and Frames

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)
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

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