|
-
Jul 17th, 2001, 07:50 PM
#1
Thread Starter
Fanatic Member
Building Strings
OK I am using an option box to build a string. What I am doing is asking a question, then the user chooses what they want, then clicks on the submit button. It goes to another page and retrieves that string by using the request.querystring method. I then do they same thing on the next page in which it gets another string using the same method. My question is how do you keep that string value form the first page?
-
Jul 18th, 2001, 01:54 AM
#2
Frenzied Member
You can use Querystrings to pass it to the next page or hidden input fields to pass it along..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jul 18th, 2001, 09:46 AM
#3
Thread Starter
Fanatic Member
How? I mean I have used the request.querystring method before but it only seems to get wha tis currently on that page..
-
Jul 18th, 2001, 11:33 AM
#4
Thread Starter
Fanatic Member
-
Jul 18th, 2001, 11:55 AM
#5
Hyperactive Member
I don't know. I am having a similar problem. See my post "ASP redirect?"
-
Jul 18th, 2001, 01:15 PM
#6
Fanatic Member
You could use Session variables to store all strings and add them together on the last page.
Chris
-
Jul 18th, 2001, 02:01 PM
#7
Thread Starter
Fanatic Member
I do not know anything about session variables, where would I start?
-
Jul 18th, 2001, 02:40 PM
#8
Thread Starter
Fanatic Member
OK lets say that I have some syntax such as:
<%
strSubject = request.QueryString("Subject")
Session("Subject") = strSubject
<%
Does this mean that I have the value of strSubject stored in a session object called Subject.. If so how do I retireive that on the next page?
-
Jul 18th, 2001, 03:26 PM
#9
Frenzied Member
You only read part of my reply.
Querystrings are only part of the solution. You have to put hidden text fields on the next page and write the querystring data from the previous page into it so it gets passed in the new page's querystrings:
Code:
Page2:
.
.
.
<input type=hidden name=txtFromPage1 value="<%=Request.Querystring("DataFromPage1")%>">
.
.
.
Page3:
.
.
.
<input type=hidden name=txtFromPage1 value="<%=Request.Querystring("txtFromPage1")%>">
<input type=hidden name=txtFromPage2 value="<%=Request.Querystring("DataFromPage2")%>">
.
.
.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|