Click to See Complete Forum and Search --> : Frame problems with Response.Redirect


John
05-30-2001, 03:44 PM
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

Edwin Cruz
06-25-2001, 05:07 PM
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