passing variable in from 1 asp file to another
- From: "LetMeDoIt" <powercodebsi@xxxxxxxxx>
- Date: 4 Jan 2007 19:50:36 -0800
Greetings,
there are tons of examples of how to pass a variable from one asp file
to another in this group, and yet I cannot seem to get that right.
Seems that the variable that I'm passing is always blank in the
destination file. Any help is greatly appreciated. Here's my logic:
In file SetVar.asp, I'm passing a variable named assetVar.
In file ReadVar.asp I'm trying to read that variable. This is where I
having the issue. Note that in ReadVar.asp, I'm using the 3 Request
calls for lack of knowing better.
The code for setting the variable is in SetVar.asp:
<body>
<form method="POST" >
<br><a href="ReadVar.asp?assetVar=CAR" target="detail"><b>CAR</b></a>
<br><a href="ReadVar.asp?assetVar=BOAT"
target="detail"><b>BOAT</b></a>
</form>
</body>
....
The code for reading the vairiable is in ReadVar.asp and follows:
<%
Dim strSearch
strSearch = Request.Form( "assetVar" )
Response.Write ( "Request.Form: " & strSearch & "<br>" )
'strSearch = Request.QueryString( "assetVar" )
Response.Write ( "Query.Form: " & strSearch & "<br>" )
'strSearch = Trim(Request( "assetVar" ))
Response.Write ( "Query.Form: " & strSearch & "<br>" )
%>
</body>
.
- Follow-Ups:
- Re: passing variable in from 1 asp file to another
- From: Daniel Crichton
- Re: passing variable in from 1 asp file to another
- From: Anthony Jones
- Re: passing variable in from 1 asp file to another
- Prev by Date: Re: Invalid class string error
- Next by Date: Re: passing variable in from 1 asp file to another
- Previous by thread: Invalid class string error
- Next by thread: Re: passing variable in from 1 asp file to another
- Index(es):