473,383 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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

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 hu**@oligroup.com

Thank you very much

Hugo
Jul 19 '05 #1
1 4220
<form name=form1 action=testb.asp method=post target="_blank">
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse...
1
by: Frawls | last post by:
Hi Can any one give me some help with this problem please? Here is the scenario: A user submits page 1 which is a web form. After the form has been submitted they are (redirected) onto...
2
by: Frawls | last post by:
Hi Can any one give me some help with this problem please? Here is the scenario: A user submits page 1 which is a web form.
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
4
by: Diane Selby | last post by:
Hi- I am developing an ASP.NET application that can take a few seconds to process the request from the user. We are looking for a client-side solution that will prevent users from resubmitting...
10
by: Johnny Fugazzi | last post by:
I have a couple of pages that have started showing an odd problem. When the code calls Response.Redirect("file.aspx"), nothing happens. The page goes white, and the old URL and querystring are...
2
by: neilphan | last post by:
Hi Guys, I need a quick reference to Windows Application Development in dotNet. I'm fairly good at the Web Development using asp.net though i'm new to the Windows Desktop Application...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
4
by: Rolf Rosenquist | last post by:
From a page with a form I collect the fields in the next page. The fields are compared with a database and if a certain condition does not fit, I want to go back to the first page with the form,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.