473,746 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Redire ct & URL Variable

Hi..

I'm redirecting users to another page using:

response.redire ct("newpage.asp ")

this works... But I need to add a variable to the page specified..

IE: newpage.asp?id= JobID

EG:

JobID = 100

Doing a response.write JobID - Presents the correct result. - 100

However, If I use:

response.redire ct("newpage.asp ?id=JobID")

I get redirected to newpage.asp?id= JobID, not newpage.asp?id= 100

How do I correct this ??

Thanks
Jul 22 '05 #1
4 14619
TomT wrote on 17 nov 2004 in microsoft.publi c.inetserver.as p.general:
response.redire ct("newpage.asp ?id=JobID")

I get redirected to newpage.asp?id= JobID, not newpage.asp?id= 100


ASP vbscript:

response.redire ct "newpage.asp?id =" & JobID

ASP jscript:

response.redire ct( "newpage.asp?id =" + JobID );

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 22 '05 #2

I've got the same problem...

de page must rdirect to Costumersview.a sp?key=1
when i do a response.redire ct to Costumersview.a sp?key=1 the redirect
doen't have any problems but when i do it from a variable
then the script won't redirect to Costumersview.a sp?key=1
i use the following code to de a redirect

response.redire ct terug

When i do a response.write (terug) i'v got the following text
Costumersview.a sp?key=1

is there someone who is familliar with this problem

Eltjo Schol
Netherlands

Evertjan. wrote:
*TomT wrote on 17 nov 2004 in
microsoft.publi c.inetserver.as p.general:
response.redire ct("newpage.asp ?id=JobID")

I get redirected to newpage.asp?id= JobID, not newpage.asp?id= 100


ASP vbscript:

response.redire ct "newpage.asp?id =" & JobID

ASP jscript:

response.redire ct( "newpage.asp?id =" + JobID );

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup) *


--
elmo
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Feb 23 '06 #3
I can't reproduce this problem. Tell me if the following two pages work as
intended for you:

Redirect2Variab le.asp:
<%
dim url
url="RedirectTa rget.asp?a=5"
Response.Redire ct url
%>
RedirectTarget. asp:
<%
for each key in Request.QuerySt ring
Response.Write key & ": " & Request.QuerySt ring(key)
next
%>

Here is the output I see when I load Redirect2Variab le.asp:
a: 5

Tell me what I need to change to make my page reproduce your symptoms.

Bob Barrows

elmo wrote:
I've got the same problem...

de page must rdirect to Costumersview.a sp?key=1
when i do a response.redire ct to Costumersview.a sp?key=1 the redirect
doen't have any problems but when i do it from a variable
then the script won't redirect to Costumersview.a sp?key=1
i use the following code to de a redirect

response.redire ct terug

When i do a response.write (terug) i'v got the following text
Costumersview.a sp?key=1

is there someone who is familliar with this problem

Eltjo Schol
Netherlands

Evertjan. wrote:
*TomT wrote on 17 nov 2004 in
microsoft.publi c.inetserver.as p.general:
response.redire ct("newpage.asp ?id=JobID")

I get redirected to newpage.asp?id= JobID, not newpage.asp?id= 100


ASP vbscript:

response.redire ct "newpage.asp?id =" & JobID

ASP jscript:

response.redire ct( "newpage.asp?id =" + JobID );

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup) *


--
elmo
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Feb 23 '06 #4
elmo wrote on 23 feb 2006 in microsoft.publi c.inetserver.as p.general:
Evertjan. wrote:
*TomT wrote on 17 nov 2004 in
microsoft.publi c.inetserver.as p.general:
> response.redire ct("newpage.asp ?id=JobID")
> I get redirected to newpage.asp?id= JobID, not newpage.asp?id= 100


ASP vbscript:

response.redire ct "newpage.asp?id =" & JobID

ASP jscript:

response.redire ct( "newpage.asp?id =" + JobID );


I've got the same problem...

de page must rdirect to Costumersview.a sp?key=1
when i do a response.redire ct to Costumersview.a sp?key=1 the redirect
doen't have any problems but when i do it from a variable
then the script won't redirect to Costumersview.a sp?key=1
i use the following code to de a redirect

response.redire ct terug

When i do a response.write (terug) i'v got the following text
Costumersview.a sp?key=1

is there someone who is familliar with this problem


[please do not toppost on usenet]

Interesting, Eljo, you are responding on my posting of Nov 17 2004!!!

Reading the posting in the proper sequence, I cannot follow what our
problem is. My explanation covers something that you do not show in your
sparse bit of code.

If you are useing ASP-vbscript, there is no reason to use () here.

Let us start debugging:
Supposing Costumersview.a sp being in the same directory as test.asp,
make a test.asp file/page with only(!!):

<%
terug = "Costumersview. asp?key=1"
response.redire ct terug
%>

.... and tell us where you get.

Je kan ook in het Nederlands antwoorden,
maar wel graag het antwoord onder de aangehaalde tekst.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 23 '06 #5

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

Similar topics

3
12393
by: Bill | last post by:
I have a page that contains processed variables that I'd like to forward using the response.redirect method. However, because the response.redirect contains the page within "pagename.asp", I have not been able to pass the variable. I've tried concatenating it, by doing respone.redirect "pagename.asp?isbn=" & rs("isbn"), however it is not working and is stopping at the ?isbn= and not adding the variable value. What can I do to include this,...
3
2822
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like Session("UserType") = "Sales". Then based on the Session("UserType") I use response.redirect to take the user to a specific page. The logic and response.redirect works fine on a Win2k server but when I move the page to a server running Win2003 the...
1
3227
by: John | last post by:
Hi, I have a routine that sets some session variables and then redirects the user to another page in the same application/ same folder. ======= Session("MyName") = "Fredsmith" Response.Redirect("./AnewPage.aspx") ======= If I go, Response.Write(Session("MyName")) in the new page the session variable does not exist.
3
1996
by: Raterus | last post by:
Anyone know how I can figure out the figure out the response.redirect trail a browser goes through when I'm using response.redirect on the server. Right now Internet Explorer just automatically redirects, I need to figure out, on the client, the pages it is being told to go to. Yes I know I can look in the address bar, but say the Response object is redirecting 3 or 4 pages per Request. I need this for a debugging issue. Thanks --Michael
10
12205
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of an object that stores the user's basic profile data (username, user type, associated sales region, etc.). I've been taking this user info and placing it in the Session object like so... Session = user;
9
1987
by: postings | last post by:
Just a quick question... When I do a "response.redirect" from a source webpage to a destination webpage, does the code on the source webpage carry on executing unless I put a "response.end" straight the "response.redirect" command? I know about server.transfer BTW, I just want to know what happens in this instance... Many thanks!
5
4571
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
9
4347
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case). The browser then makes a new request to the server to redirect itself to abcd.asp after which the user gets redirected to abcd.asp. But in case of Server.Execute (or Server.Transfer), when the server
4
1564
jschrader
by: jschrader | last post by:
Sorry that I'm reposting, but this topic is in an archive that I can't post to. I am having a problem that I can not figure out... I have a ASP form page /Quiz.asp that processes the form itself. and then has a redirect to a Confirmation.asp page I am trying to figure out how to pass off the PK_ID from the new record being create in the database to the new confirmation page so that they can see some of their information and quiz answers. ...
0
8974
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9508
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9218
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8229
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6060
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4586
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4836
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.