response.redirect with frames

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Frames. Yack, I agree. BUT, I've been mandated to use them.

Let's assume a page has a simple top and bottom frame. Is there a way using
a Response.Redirect("http://someotherurl.com/) in the bottom frame page to
redirect the entire browser window, not just the bottom frame? For example,
if you were using a simple hyperlink, you could specify the target attribute
of the hyperlink and make the entire browser redirect rather than just the
bottom window. Can you do this with a Response.Redirect? Thanks!

Mark
 
No you cannot. Response.Redirect is strictly server side, it doesn't know
about frames and all that, it just knows a request came in.

You can only response.write client side javascript, that will do the
redirect appropriately.
 
You can't redirect to another frame but if you must do this in code-behind
or in some .NET method try using javascript and RegisterStartupScript.

-Stanley
 
Back
Top