Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP - Form redirect to same page - BACK button does not work ???

Reply
Thread Tools

ASP - Form redirect to same page - BACK button does not work ???

 
 
Hugo Botha
Guest
Posts: n/a
 
      07-11-2004
Hi,

I have created 2 asp pages called testa.asp and testb.asp

testa.asp has a link to go to next page testb.asp

testb.asp has a form that ask you for a reference number and post it
to the same page testb.asp

If the reference number is not blank, it will just write out what the
reference number is.

Now my problem....

If you go to testa.asp and click on the link to go to testb.asp you
will see the form. At this point, if you click the back button, it
till take you back to testa.asp ALL FINE SO FAR.

If you go to testb.asp again and see the form, enter a number say 33
and click on search. This will now show you the number you have just
entered. NOW - click on the BACK BUTTON, it will just show you exactly
the same page ! WHY does it not go back to the FORM in order to refill
in a different number.

You can see this example on :
http://www.oliproperties.com/oliproperties/testa.asp

Here is the code for testa.asp
<%
Response.Expires = -2000 'Makes the browser not cache this page

%>
<a href="testb.asp">click</a>

Here is the code for testb.asp
<%
Response.Expires = -2000 'Makes the browser not cache this page
Reference_No = Request.Form("Reference_No")

If Reference_No = "" Then

%>

<form name=form1 action=testb.asp method=post>

<TABLE cellSpacing=0 cellPadding=5>
<TBODY>
<TR>
<TD align="center" class=txt><B>Reference Number
:</B><BR>
<input type=text name=Reference_No size="25" value=""
TabIndex=1><BR>
<input type=hidden name=login value=true>
<input type=submit value="Search"></TD>
</TR>
</TBODY>
</TABLE>

</form>

<%
Else
response.write " reference number = " & Reference_No
End If
%>

Can anyone help please ????

e-mail http://www.velocityreviews.com/forums/(E-Mail Removed)

Thank you very much

Hugo
 
Reply With Quote
 
 
 
 
Maarten
Guest
Posts: n/a
 
      07-11-2004
<form name=form1 action=testb.asp method=post target="_blank">


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.redirect does not redirect from .aspx page =?Utf-8?B?VHJveQ==?= ASP .Net 3 10-15-2008 09:07 PM
ASP.NET Error redirect then use Back button (or programmed button) phancey ASP .Net 3 02-23-2008 03:51 PM
Back button doesn't work when it is a secure page returning to a non secure page Miss Mary General Computer Support 1 09-21-2007 09:32 AM
disable the back button provide the users with my own button to go back. sylvia sil ASP .Net 1 12-29-2004 04:41 PM
Urgent!!!: Onunload event (refreshing page), can not redirect (window.location.href does not work) Jiong Feng Javascript 9 06-24-2004 04:32 PM



Advertisments