473,513 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response Redirect

I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='F emale')
Nov 18 '05 #1
4 1762
"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='F emale')


An ampersand. Also there is a Server method called "UrlEncode" that can be
used to make sure that you don't send unusable characters as parameters.
Nov 18 '05 #2
And the magic character is ........

&

hope this helps
Chris

"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='F emale')

Nov 18 '05 #3
The ampersand.

response.redirect("somepage.aspx?Fred='Male'&Tom=' Female'&Mike='neither')
"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='F emale')

Nov 18 '05 #4
Jim Heavey <Ji*******@nospam.com> wrote in message news:<Xn*********************************@207.46.2 48.16>...
I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='F emale')


Use the "&" character.

response.redirect("somepage.aspx?Fred='Male'&Tom=' Female')

Weird name for a girl though. 'Tom'
Nov 18 '05 #5

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

Similar topics

3
3887
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
4
3040
by: JC | last post by:
Hi, I have a simple question regarding the Response.Redirect method. Does the server stop processing the ASP code as soon as it encounters the Redirect command? Or does it ever continue to...
4
14595
by: TomT | last post by:
Hi.. I'm redirecting users to another page using: response.redirect("newpage.asp") this works... But I need to add a variable to the page specified.. IE: newpage.asp?id=JobID
6
4300
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
3
818
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
13
4670
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the...
10
9478
by: Niggy | last post by:
I get an error - any help appreciated. System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object...
5
4546
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...
4
11389
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
9
4331
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)....
0
7267
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
7391
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,...
0
7553
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...
1
7120
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...
0
5697
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,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
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...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.