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 December 4th, 2003, 10:10 PM
Registered User
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to pass 2 variable in responce.redirect

 I have written response.redirect "abc.asp?a=1" passing one variable and it is working but my problem is how to pass two variable ?

i tried response.redirect "abc.asp?a=1&b=1" but itz not working try to help me .


Old December 5th, 2003, 04:54 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts

The syntax in your post is right! I think it is because you are testing it in the wrong way. Put the code underneath in a file called redirectTest.asp and request it...
If Request.QueryString("a") = "" and Request.QueryString("b") = "" Then
    Response.Redirect "redirectTest.asp?a=1&b=2"
    Response.Write("a: " & Request.QueryString("a") & "<BR>")
    Response.Write("b: " & Request.QueryString("b"))    
End If

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass ID to redirect page? okboy ASP.NET 2.0 Basics 2 December 14th, 2006 06:12 PM
pass java variable to xsl variable kathy1016cats XSLT 1 June 14th, 2006 06:23 PM
how to post variable on response.redirect????? Swetz Classic ASP Components 3 May 16th, 2006 06:37 AM
pass variable kapi.goel C# 1 January 6th, 2006 05:54 AM
passing a variable using response.redirect katie456 Classic ASP Databases 3 January 20th, 2004 02:35 AM

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