|
-
Jul 18th, 2001, 08:00 AM
#1
Thread Starter
Hyperactive Member
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?
-
Jul 18th, 2001, 09:30 AM
#2
Black Cat
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.
-
Jul 18th, 2001, 10:22 AM
#3
Thread Starter
Hyperactive Member
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?
-
Jul 18th, 2001, 02:06 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|