Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2004
    Posts
    77

    Unanswered: Response.redirect problem again !!

    I want to use response.redirect to pass value to page2.asp so
    when I write
    response.redirect "page2.asp?title="&request.querystring("title" )
    There is no problem. But when I write

    response.redirect "page2.asp?title=&request.querystring("title")&sto ckname=&request.querystring("stockname")&numshare= "&request.querystring("numshare")

    It didn't work !!

  2. #2
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    Try this:

    response.redirect "page2.asp?title=" & request.querystring("title") & "stockname=" & request.querystring("stockname") & "numshare=" & request.querystring("numshare")

    You were missing some double quotes in certain locations
    That which does not kill me postpones the inevitable.

  3. #3
    Join Date
    Aug 2004
    Posts
    77
    The message that I got after I type your code was
    "Unterminated string constant"
    :-(

  4. #4
    Join Date
    Aug 2004
    Posts
    77
    Ok It works now. Thanks ..

  5. #5
    Join Date
    Aug 2004
    Posts
    77
    Oh No !!! It doesn't work well.

    I type
    response.redirect "index2.asp?title=" & request.querystring("title") & "stockname=" & request.querystring("stockname") & "price="&request.querystring("price")&"numshar e=" & request.querystring("numshare")

    Then when I type <%=request.querystring("title")%> in index2.asp
    I got
    stockname=price=numshare=

    What is this !!!!!!

  6. #6
    Join Date
    Aug 2004
    Posts
    77
    So now it looks better. I type

    response.redirect "index.asp?title="&request.querystring("title")&"s tockname="&request.querystring("stockname")&"price ="&request.querystring("price")&"numshare="&reques t.querystring("numshare")

    In index2.asp , I got
    buystockname=Microsoftprice=34.22numshare=3

    I don't want word stockname, price, numshare !!! :-(

  7. #7
    Join Date
    Aug 2004
    Posts
    77
    Ya !!!! It work now.
    The answer must be something like this

    url = "maketrade.asp?title="&request.querystring("title" )&"&stockname="&request.querystring("stockname")&" &price="&request.querystring("price")&"&numshar e= "&request.querystring("numshare")
    Response.Redirect(url)

    Finally I can do it !! :-)

Posting Permissions

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