Results 1 to 4 of 4

Thread: ASP Redirect ?

  1. #1

    Thread Starter
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329

    Smile ASP Redirect ?

    Yes,

    I am having trouble when I try to pass this string in ASP as a response.redirect:
    [COLOR=sea-green]cookies.asp?redirect='login.asp?error=password&redirect=/cup2002/layout.asp'
    [/COLOR]

    However when the url arrives at cookies.asp, it is now:

    'login.asp?error=password, /cup2002/layout.asp

    The &redirect= has been replaced by a , . Does anyone know a solution for this?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Try a Response.Redirect Server.URLEncode("page goes here") and see if that helps any. If not, elaborate on your code a little.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329
    I am attempting to go from layout.asp to login.asp to cookies.asp back to login.asp.

    layout.asp calls login.asp?redirect=/cup2002/layout.asp when user clicks login link.

    login.asp calls cookies.asp?redirect='login.asp?error=password&redirect=/cup2002/layout.asp' This URL is created by combing strings: strURL = "cookies.asp?redirect='login.asp?error=password&redirect=" & Request.QueryString("redirect") & "'". Response.Redirect strURL is then run. This URL is called when ever the user enters wrong password.

    cookies.asp is now run. The page cannot call login.asp when attempt is made using new Request.QueryString("redirect"). URL is 'login.asp?error=password, /cup2002/layout.asp The comma has replaced what should be &redirect=

    Could this be a ByRef problem because QueryString redirect is used both in login.asp and cookies.asp? Any other ideas?

  4. #4
    chenko
    Guest

    Cool

    It is accutally getting these values....



    redirect='login.asp?error=password

    redirect = /cup2002/layout.asp

    ... from the cookies.asp, the & is makeing your vbscript think its another varible, I havnt gotten around this in a decent fashion yet

Posting Permissions

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



Click Here to Expand Forum to Full Width