help in redirecting asp pages on a page using frames

Q

quitaxe

hi
i am facing this problem when i redirect to a asp page using -

Response.redirect "mynext.asp"

the problem is that the current page is using frames so this
mynext.asp is also getting loaded in the frame itself. i need to
remove all the frames and load this mynext.asp in the entire browser
window. kind of like the <a href="mynext.htm" target="_top"> of html

how can this be done. please advice.
thanks
 
B

Bob Barrows [MVP]

quitaxe said:
hi
i am facing this problem when i redirect to a asp page using -

Response.redirect "mynext.asp"

the problem is that the current page is using frames so this
mynext.asp is also getting loaded in the frame itself. i need to
remove all the frames and load this mynext.asp in the entire browser
window. kind of like the <a href="mynext.htm" target="_top"> of html

how can this be done. please advice.
thanks
Use the <FORM> element's target attribute.
 
M

Mark Schupp

You cannot target a specific window from server-side code because the server
knows nothing of what windows are available. The browser controls the
windows so you need to user client-side code. Instead of response.redirect
try outputting HTML containing:

<script language="javascript">
top.document.location = "mynext.asp"'
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top