473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VBscript response redirection

Lam
I try to use
qs = Server.URLEncode(Request.Querystring)
session("fromURL") = request.ServerVariables("HTTP_REFERER")&
Server.HTMLEncode(qs)
on the login page

then on the next page
I use response.redirect session("fromURL")

the following extra characters got appended at the end of the URL
"auto%3Dtrue"
Does any one know what's wrong?

Thanks a lot

Jul 22 '05 #1
4 5102
Well, I don't know why you're getting auto%3Dtrue, but may I suggest you
forget about the querystring and just use http_referer, since that will
include the querystring as it is?

Ray at work

"Lam" <ja**********@hotmail.com> wrote in message
news:uJ**************@TK2MSFTNGP10.phx.gbl...
I try to use
qs = Server.URLEncode(Request.Querystring)
session("fromURL") = request.ServerVariables("HTTP_REFERER")&
Server.HTMLEncode(qs)
on the login page

then on the next page
I use response.redirect session("fromURL")

the following extra characters got appended at the end of the URL
"auto%3Dtrue"
Does any one know what's wrong?

Thanks a lot

Jul 22 '05 #2
Lam
yes
that would work
but is there anyway that I can let the page stay for few second before
redirect to orginal page?
I don't see there is any parameter that I use with response.redirect
thanks
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:ez**************@TK2MSFTNGP12.phx.gbl...
Well, I don't know why you're getting auto%3Dtrue, but may I suggest you
forget about the querystring and just use http_referer, since that will
include the querystring as it is?

Ray at work

"Lam" <ja**********@hotmail.com> wrote in message
news:uJ**************@TK2MSFTNGP10.phx.gbl...
I try to use
qs = Server.URLEncode(Request.Querystring)
session("fromURL") = request.ServerVariables("HTTP_REFERER")&
Server.HTMLEncode(qs)
on the login page

then on the next page
I use response.redirect session("fromURL")

the following extra characters got appended at the end of the URL
"auto%3Dtrue"
Does any one know what's wrong?

Thanks a lot


Jul 22 '05 #3
What do you mean, something like, "You will be redirected in five seconds?"

In that case, you'd have to use client side redirecting, such as a meta
refresh or a Javascript location.href or location.replace.

Ray at work

"Lam" <ja**********@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
yes
that would work
but is there anyway that I can let the page stay for few second before
redirect to orginal page?
I don't see there is any parameter that I use with response.redirect
thanks
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:ez**************@TK2MSFTNGP12.phx.gbl...
Well, I don't know why you're getting auto%3Dtrue, but may I suggest you
forget about the querystring and just use http_referer, since that will
include the querystring as it is?

Ray at work

"Lam" <ja**********@hotmail.com> wrote in message
news:uJ**************@TK2MSFTNGP10.phx.gbl...
I try to use
qs = Server.URLEncode(Request.Querystring)
session("fromURL") = request.ServerVariables("HTTP_REFERER")&
Server.HTMLEncode(qs)
on the login page

then on the next page
I use response.redirect session("fromURL")

the following extra characters got appended at the end of the URL
"auto%3Dtrue"
Does any one know what's wrong?

Thanks a lot



Jul 22 '05 #4
Lam
meta refresh works
thanks

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Oq**************@TK2MSFTNGP15.phx.gbl...
What do you mean, something like, "You will be redirected in five seconds?"
In that case, you'd have to use client side redirecting, such as a meta
refresh or a Javascript location.href or location.replace.

Ray at work

"Lam" <ja**********@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
yes
that would work
but is there anyway that I can let the page stay for few second before
redirect to orginal page?
I don't see there is any parameter that I use with response.redirect
thanks
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:ez**************@TK2MSFTNGP12.phx.gbl...
Well, I don't know why you're getting auto%3Dtrue, but may I suggest you forget about the querystring and just use http_referer, since that will include the querystring as it is?

Ray at work

"Lam" <ja**********@hotmail.com> wrote in message
news:uJ**************@TK2MSFTNGP10.phx.gbl...
> I try to use
> qs = Server.URLEncode(Request.Querystring)
> session("fromURL") = request.ServerVariables("HTTP_REFERER")&
> Server.HTMLEncode(qs)
> on the login page
>
> then on the next page
> I use response.redirect session("fromURL")
>
> the following extra characters got appended at the end of the URL
> "auto%3Dtrue"
>
>
> Does any one know what's wrong?
>
> Thanks a lot
>
>
>



Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
6
by: ASPfool | last post by:
Hello everyone, Please help me before I throw my computer out of the window: I'm working on a web application in classic ASP (vbscript), which is making calls to some webservices. The calls...
3
by: gtea | last post by:
I am using response.redirec to do the url redirection on my login page. The login page is under http://myURL/test/dir1/login.aspx, when the user login successfully, the login page redirects the...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
14
by: tomer | last post by:
Clear DayHello, I have implemented a download manger in .NET that overrides Internet Explorer's bult-in download manager. I using HttpWebRequest/Response to download the files. All is working...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.