help in redirecting asp pages on a page using frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • quitaxe

    help in redirecting asp pages on a page using frames

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

    Response.redire ct "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.ht m" target="_top"> of html

    how can this be done. please advice.
    thanks
  • Bob Barrows [MVP]

    #2
    Re: help in redirecting asp pages on a page using frames

    quitaxe wrote:[color=blue]
    > hi
    > i am facing this problem when i redirect to a asp page using -
    >
    > Response.redire ct "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.ht m" target="_top"> of html
    >
    > how can this be done. please advice.
    > thanks[/color]
    Use the <FORM> element's target attribute.
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    • Mark Schupp

      #3
      Re: help in redirecting asp pages on a page using frames

      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.redire ct
      try outputting HTML containing:

      <script language="javas cript">
      top.document.lo cation = "mynext.asp "'
      </script>


      --
      Mark Schupp
      Head of Development
      Integrity eLearning



      "quitaxe" <quitaxe@hotmai l.com> wrote in message
      news:73ef77b6.0 405151057.2f67e e01@posting.goo gle.com...[color=blue]
      > hi
      > i am facing this problem when i redirect to a asp page using -
      >
      > Response.redire ct "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.ht m" target="_top"> of html
      >
      > how can this be done. please advice.
      > thanks[/color]


      Comment

      Working...