passing variable in from 1 asp file to another
am 05.01.2007 04:50:36 von LetMeDoItGreetings,
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:
....
The code for reading the vairiable is in ReadVar.asp and follows:
<%
Dim strSearch
strSearch = Request.Form( "assetVar" )
Response.Write ( "Request.Form: " & strSearch & "
" )
'strSearch = Request.QueryString( "assetVar" )
Response.Write ( "Query.Form: " & strSearch & "
" )
'strSearch = Trim(Request( "assetVar" ))
Response.Write ( "Query.Form: " & strSearch & "
" )
%>