Solved

ASP redirection

Posted on 1998-07-09
9
156 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

708 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

19 Experts available now in Live!

Get 1:1 Help Now