Quote:
Originally Posted by rmurgia
I set up a sequence of asp pages, which pass a variable containing the name of the initial page through the sequence. In this way I can insure that the user cannot open the maintenance pages directly, but must go through the login page first. The sequence goes as follows: MASLogin.asp, MASMaint_01.asp, MASMaint_02.asp, and MASMaint_03.asp. At the end of the sequence, the user clicks the Exit button on page MASMaint_03. This button calls up page MASMaint_01.asp which allows the user to enter another record. The code in question is listed below:
On page MASLogin.asp:
strSendForm = “MASLogin.asp”
<input id="SendForm" name="SendForm" type="text" value="<%=strSendForm%>"</td>
On all other pages:
strSendForm = Request.Form("SendForm")
<input id="SendForm" name="SendForm" type="text" value="<%=strSendForm%>"</td>
Everything works fine through the sequence, however, when the user goes to enter a new record on page MASMaint_01, the variable no longer contains the data. It seems that when you call up a sequence of screens and then begin back on the first one, something must be cleared out of memory for it to work properly. Does anyone have any ideas?
Values are not cleared from memory unless the session is stopped or you tell them to clear in code.
Need to see how you are directing the user to the first page. Is your variable spelled correctly for that redirect?
Do you have a form action= to what? The first page?
The form action determines what page the user is directed to when you submit via a button.
If you need them to go to the first page then just have your form action="<%=strSendForm%>" but this also means any save code you have will need to be run on that form too.
If you have your save code on the 03 page then after its done saving you need to have a response.redirect(strSendForm) after its done
Also another note, you can keep your passed variable hidden from user modification, which could be another problem if that text box is getting blanked out by a user typo.. if you use:
-
<input id="SendForm" name="SendForm" type="hidden" value="<%=strSendForm%
-