Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 20th, 2004, 11:04 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old January 20th, 2004, 11:07 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
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)
Reply With Quote
  #3 (permalink)  
Old January 20th, 2004, 11:27 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
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..;)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:12 PM.


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