• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

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??
0
Asker
Asked:
Asker
  • 5
  • 3
1 Solution
 
sybeCommented:
you can't do that using ASP only, you'' have to use Javascript for that.

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




0
 
AskerAuthor Commented:
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>"
0
 
sybeCommented:
So what do you do with the question....delete it ? give me some points for putting you on the right track ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
AskerAuthor Commented:
Sorry, how can I do that?The page is giving me the option of grading etc.....
0
 
AskerAuthor Commented:
Ooops, I meant the page isnt giving me the option of grading etc...
0
 
AskerAuthor Commented:
You dont seem to have locked the question....
0
 
sybeCommented:
OK, I will lock it now
0
 
james093096Commented:
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
0
 
AskerAuthor Commented:
Thanks for the offer, but other solution was satisfactory.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now