473,785 Members | 2,618 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 14628
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
12397
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
2825
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
3247
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
1997
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
12211
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
1988
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
4573
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
1566
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
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10341
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...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
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
8979
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
6741
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
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.