Click to See Complete Forum and Search --> : passing variable value in an asp link


ozpo1
09-18-2007, 05:05 PM
I have a page which recieve a variable from one page and then "choose" which page to call accordingly.

I would like to call to the new page and to send the value of the variable with the link that I'm using. How can I pass the variable itself?

Here is the code:
<%
project = Request.QueryString("project")
if project="Conditioning" then
Response.Redirect "air-conditioning/air-conditioning.asp?project"
end if
%>

gil davis
09-19-2007, 06:30 AM
Response.Redirect "air-conditioning/air-conditioning.asp?" & project

harumph
09-21-2007, 02:48 PM
How is your next page receiving this?

harumph
09-21-2007, 02:49 PM
How is your next page receiving this?

With

project = Request.querystring ("project") ?

If so, I'd use:

Response.Redirect "air-conditioning/air-conditioning.asp?project=" & project

ozpo1
09-21-2007, 02:54 PM
I appreciate it,
Oz