Solved

ASP redirection

Posted on 1998-07-09
9
157 Views
Last Modified: 2013-12-25
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
Comment
Question by:Asker
  • 5
  • 3
9 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1858519
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
 

Author Comment

by:Asker
ID: 1858520
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
 
LVL 28

Expert Comment

by:sybe
ID: 1858521
So what do you do with the question....delete it ? give me some points for putting you on the right track ?
0
 

Author Comment

by:Asker
ID: 1858522
Sorry, how can I do that?The page is giving me the option of grading etc.....
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:Asker
ID: 1858523
Ooops, I meant the page isnt giving me the option of grading etc...
0
 

Author Comment

by:Asker
ID: 1858524
You dont seem to have locked the question....
0
 
LVL 28

Accepted Solution

by:
sybe earned 70 total points
ID: 1858525
OK, I will lock it now
0
 

Expert Comment

by:james093096
ID: 1858526
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
 

Author Comment

by:Asker
ID: 1858527
Thanks for the offer, but other solution was satisfactory.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now