help in redirecting asp pages on a page using frames

Discussion in 'ASP General' started by quitaxe, May 15, 2004.

  1. quitaxe

    quitaxe Guest

    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.
    quitaxe, May 15, 2004
    1. Advertisements

  2. Use the <FORM> element's target attribute.
    Bob Barrows [MVP], May 15, 2004
    1. Advertisements

  3. quitaxe

    Mark Schupp Guest

    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"'
    Mark Schupp, May 17, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.