Solved

ASP redirection

Posted on 1998-07-09
9
165 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

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

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

730 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