Frame problems with Response.Redirect


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Frame problems with Response.Redirect

  1. #1
    John Guest

    Frame problems with Response.Redirect


    Hi there!

    This is my problem:

    I have an ASP page (page1.asp) that consists of two frames (one upper and
    one lower frame). In the lower frame there is a form that is submitted by
    the user, when this form is submitted a new ASP page (page2.asp) is called
    (without any HTML). In the end of page2.asp I have a Response.Redirect to
    page3.asp. The problem is that I still can see the upper frame from page1.asp
    after the Response.Redirect. Page3.asp is loaded in the same frame that I
    submitted the form from (which is very logical). This is not what I want
    to do though, I want page3.asp to appear "alone" in the browser window, that
    is, I don't want the upper frame from page1.asp to be there after the Response.Redirect

    Please, can anyone tell me how to achive this, I would be very greatful for
    help

    ****PLEASE RESPOND TO THE NEWSGROUP *************

    Regards
    John

  2. #2
    Edwin Cruz Guest

    Re: Frame problems with Response.Redirect


    add the attribute "target" and give it a value of "_top" to your form tag

    i.e.
    <form name=form1 target="_top" action="page2.asp" method="POST">

    "John" <john70@hotmail.com> wrote:
    >
    >Hi there!
    >
    >This is my problem:
    >
    >I have an ASP page (page1.asp) that consists of two frames (one upper and
    >one lower frame). In the lower frame there is a form that is submitted by
    >the user, when this form is submitted a new ASP page (page2.asp) is called
    >(without any HTML). In the end of page2.asp I have a Response.Redirect to
    >page3.asp. The problem is that I still can see the upper frame from page1.asp
    >after the Response.Redirect. Page3.asp is loaded in the same frame that

    I
    >submitted the form from (which is very logical). This is not what I want
    >to do though, I want page3.asp to appear "alone" in the browser window,

    that
    >is, I don't want the upper frame from page1.asp to be there after the Response.Redirect
    >
    >Please, can anyone tell me how to achive this, I would be very greatful

    for
    >help
    >
    >****PLEASE RESPOND TO THE NEWSGROUP *************
    >
    >Regards
    >John



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center