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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing QueryStrings

Status
Not open for further replies.

struth

Programmer
Aug 26, 2001
114
0
0
GB
I have set a querystring in a previous page and I now want to pass that same value and querystring to another page. I am sure I have seen this done using Response.redirect:

Response.Redirect "norestaurant.asp?ID=Request.QueryString(ID)"

I have also tried setting up the QueryString again:

Response.Redirect "norestaurant.asp?ID=(rsRestaurants.Fields.Item("RestaurantID").Value)"

I have tried it with brackets and no " with brackets alone etc ... just nothig seems to work>
 
Response.Redirect "norestaurant.asp?ID=
Request.QueryString("ID")"
need quoters around the ID
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
 
Should do like this:
Response.Redirect "norestaurant.asp?ID=" & Request.QueryString("ID")

------------------
Freedom is a Right
 
Your right but that didn't work either :(
 
Response.Redirect "norestaurant.asp?ID=Request.Querystring("ID")"
I've checked and this is the same formatt I've used many times before with success so if it doesn't work
test to see if there is a value in the ID
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
 
Cookin' and I'll just write it out to remind myself....

Response.Redirect "norestaurant.asp?ID=" & Request.QueryString("ID")

Many thanks
Struth
 
I would do this...

<%

Session(&quot;IDnumber&quot;) = Request.QueryString(&quot;ID&quot;)
Response.Redirect &quot;norestaurant.asp&quot;


'# noresturant.asp page...

Response.Write(Session(&quot;IDnumber&quot;))

%>
 
this should work:

response.redirect(&quot;norestaurant.asp?ID=&quot; & Request.QueryString(&quot;ID&quot;))
 
What I have got to work:

goatstudio
Response.Redirect &quot;norestaurant.asp?ID=&quot; & Request.QueryString(&quot;ID&quot;)

sjravee
Response.Redirect(&quot;norestaurant.asp?ID=&quot; & Request.QueryString(&quot;ID&quot;))

The important elements are the quotations - beginning and ending where they do.

Thanks
Struth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top