Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass variables to next page

Status
Not open for further replies.

cheyney

Programmer
Jul 16, 2002
335
CA
Is there any way to write variables directly into the request object of a target page?

something along the lines of
response.form("one") = 1
response.redirect("one.asp")

then on one.asp
response.write (request.form("one"))

?

or is the only way to pass variables between asp pages (via ASP) with the session/application objects, or the query string?

Cheyney
 
or hidden form variables -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
I usually put variables in a link collection, for example:

titel=23
‘if contents is an number
Response.Redirect "somepage.asp?titelid="&titel
Then in somepage.asp a pick up the value through somevarname=Request.Querystring (“titelid”)
you can insert various values in a link, just put a & between…..
titel=34
hiho=54
morestuff =6
Response.Redirect "somepage.asp?titelid="&titel&hiho&morestuff

Best regards, Lis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top