Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts

    response.redirect ... how the "&" setup in the statement ?

    how i write in asp response.redirect "..........." the
    index.asp?time=x&car=b where x,b = vars from request.form ? how the "&" setup in the statement ?

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,062
    Thanks
    4
    Thanked 8 Times in 8 Posts
    As long as the ampersand & is inside the quotes, it is not seen as a concatenation operator. Outside the quotes and it is seen as a concatenation operator. So if you are building a string dynamically it would look something like this

    Response.Redirect("somesite.asp?color=" & strColor & "&qty=" & intQty)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •