Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirecting

Status
Not open for further replies.

xloop

Programmer
Nov 12, 2001
86
GB
How would i go about redirecting to a target frame (_top) ???

Response.Redirect("Page.aspx target=_top")

obviously that doesn't work but you get the idea.

Thanks
 
You will either have to do it in the frame where the page is, or with client side code from some other frame:

parent.top.frames[index].location = 'page.aspx';

It's impossible to target a different frame server side, since frames are strictly client side objects.

But registering such a client side script is a breeze:

Page.RegisterStartupScript(scriptKey,yourScriptHere);

-paul
penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Paul

Yep understand that it has to be done clientside, no probs...

However i don't actually want the page to appear in any frame.
I have a start page which has a header and main area (frame1 and frame2 say), after i've redirected to another page that will appear in frame2 i would then like to redirect the next page to overwrite the entire window (_top) and show the new page.

Does that make sense?

 
Try this
faq855-2058 That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top