Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 July 9th, 2004, 03:12 AM
Authorized User
 
Join Date: Apr 2004
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to pass a value in querystring

Hi there! I have this page which after processing, must load another page. However, response.redirect doesn't work so I made use of a script...

  id = 1
  response.write "<SCRIPT>"
  response.write "window.location='page2.asp?id='" & id
  response.write "</SCRIPT>"

But the script can't seem to get the value of id. Can somebody please help me with this?

Thanks!
 
Old July 9th, 2004, 03:21 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You need to move the single quote to after the id:

Response.Write "window.location='page2.asp?id=" & id & "'"

HtH,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Who Shot The Go Go Dancer? by Moloko (Track 17 from the album: Do You Like My Tight Sweater?) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
using querystring melkin Classic ASP Basics 7 April 1st, 2008 09:07 AM
Pass QueryString to DDL then run refresh sterreyl ASP.NET 2.0 Basics 2 March 20th, 2007 10:49 AM
How do I pass URL to querystring? Shawn Mohan .NET Web Services 0 June 28th, 2006 12:33 AM
How to pass plus (+) character in querystring marjorin Classic ASP Professional 4 October 31st, 2003 04:40 AM





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