response.redirect with frames

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
 
M

Marina

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.
 
S

Stanley

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
 

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