Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2004, 11:04 PM
Authorized User
 
Join Date: Jun 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing a variable through URL

I'm not sure why I can't get the value of a variable I declare and pass through the URL.

here is part of my code:

if( adoRecordSet.Eof == false )
   {
    contractID = adoRecordSet("contractorID").Value;
    Response.Cookies("IsValid") = "Yes";
Response.Redirect("memberpage.asp?contractorID=con tractID");

   }

when I pass the variable contractID it doesn't give a number in the url when i get to memberpage.asp it just gives the variable name contractID..
i've tried other things.. i'm stumped.. any thoughts?

Kathleen
 
Old January 20th, 2004, 11:07 PM
Authorized User
 
Join Date: Jun 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i get a file not found error when I do this
Response.Redirect("memberpage.asp?contractorID=" & contractID)
 
Old January 20th, 2004, 11:27 PM
Authorized User
 
Join Date: Jun 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh good.. i got it to work i just had to change "&" to "+" (javascript) sorry! thanks..;)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing parameter in URl alamoudi ASP.NET 2.0 Professional 3 May 4th, 2007 06:13 AM
Passing parameter in URl alamoudi ASP.NET 1.x and 2.0 Application Design 0 May 2nd, 2007 02:10 AM
Passing parameters in URL british4 Crystal Reports 1 June 27th, 2005 02:55 AM
Passing variable to a public variable Hudson40 Access VBA 2 February 25th, 2005 06:23 AM
Passing URL in a Querystring hugh@kmcnetwork.com Javascript How-To 3 July 8th, 2004 04:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.