1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jan 2012
    Rep Power

    Angry Passing URL Variables with response.Redirect

    Okay, so I have searched like 10 forums and have not found a solution that works for me somehow. I use the response.Redirect method which is currently working:
    response.Redirect "http://info.bluelinkerp.com/webinars/"
    However, when I try to add a variable to the URL it completely ignores it!

    response.Redirect "http://info.bluelinkerp.com/webinars/" & campaign
    I have tried everything from attempting to convert the variable to a string and various concatenation methods with no luck. Full page code below:

        dim bCookiePresent, campaign
        bCookiePresent = false
    	campaign = ""
    	campaign = request.QueryString("campaign")
        if request.Cookies("Webinar") <> "" then 
            bCookiePresent = true
        end if
        if bCookiePresent = true or campaign <> "" then 
            response.Redirect "thankyou-webinars.asp"
            response.Redirect "http://info.bluelinkerp.com/webinars/" & campaign
        end if
    Please help!
  2. #2
  3. No Profile Picture
    Contributing User
    ASP Adventurer (500 - 999 posts)

    Join Date
    Feb 2008
    Rep Power
    response.Redirect "http://info.bluelinkerp.com/webinars/" & campaign
    If your querysting is campaign and you want the QS to be campaign, then I believe you need to do this...


    Comments on this post

    • nofriends agrees

Similar Threads

  1. Passing variables on response.redirect
    By Phoenix_riser in forum ASP Development
    Replies: 7
    Last Post: May 25th, 2006, 04:15 AM
  2. Passing Variables with Response.redirect
    By dinivan in forum ASP Development
    Replies: 4
    Last Post: April 3rd, 2006, 05:27 AM
  3. Passing variables via a Response.Redirect
    By flukebuzzsaw in forum ASP Development
    Replies: 9
    Last Post: April 5th, 2005, 06:54 PM
  4. Replies: 2
    Last Post: September 16th, 2004, 10:51 AM
  5. Passing some form variables to some other .NET page
    By nasir ahmed in forum .NET Development
    Replies: 3
    Last Post: November 20th, 2003, 04:06 AM

IMN logo majestic logo threadwatch logo seochat tools logo