Link to home
Start Free TrialLog in
Avatar of Asker
Asker

asked on

ASP redirection

I have a page containing three frames.  One of them uses the ASP command Response.redirect("anotherpage.hml"). However this causes the new page to appear in that frame , where as I want anotherpage.html to appear at the top level (ie replace all the frames). How is this done??
Avatar of sybe
sybe

you can't do that using ASP only, you'' have to use Javascript for that.

Response.write "<script>window.location.href='anotherpage.html'</script>"




Avatar of Asker

ASKER

Didnt actually work but put me on the right track.  Solution above caused anotherpage.html to appear in the frame.  The way to do it is to use:
Response.write "<script>top.location='anotherpage.html'</script>"
So what do you do with the question....delete it ? give me some points for putting you on the right track ?
Avatar of Asker

ASKER

Sorry, how can I do that?The page is giving me the option of grading etc.....
Avatar of Asker

ASKER

Ooops, I meant the page isnt giving me the option of grading etc...
Avatar of Asker

ASKER

You dont seem to have locked the question....
ASKER CERTIFIED SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
IF you include in the form tag ' target="_top" ' during the redirect you will blow away your frameset and have anotherpage.html at the top. I can send sample code if you would like. james@digitalfoundry.com
Avatar of Asker

ASKER

Thanks for the offer, but other solution was satisfactory.