473,473 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Response.Redirect problem in Classic ASP

Dear All,

I am new to ASP/ASP.Net and am trying to workout the exact meaning of
some old ASP Classic code. Can anyone please explain the meaning of
the following line of code:

Response.Redirect("store.asp?r=1&m=3")

In particular I need to understand the parameters (i.e. r=1&m=3) that
are being passed, and if they are defaults where can I get a listing
and explanation of their meanings and uses?

Thanks.

Alasdair Stirling

Sep 5 '06 #1
3 8148

al***************@gmail.com wrote:
Dear All,

I am new to ASP/ASP.Net and am trying to workout the exact meaning of
some old ASP Classic code. Can anyone please explain the meaning of
the following line of code:

Response.Redirect("store.asp?r=1&m=3")

In particular I need to understand the parameters (i.e. r=1&m=3) that
are being passed, and if they are defaults where can I get a listing
and explanation of their meanings and uses?
No one can tell you what the parameters are without looking at the code
in store.asp. In that file, there should be some conditional logic
that will look for the values of Request.QueryString("r") and
Request.QueryString("m"), and take certain actions as a result of those
values.

There is no such thing as default parameters or values in Classic ASP
querystrings. "r" and "m" could just as well have been called "mouse"
and "stopstandingonmyfoot" with any string as the value (as in
store.asp?mouse=sink&stopstandingonmyfoot=2234cfd4 ). r and m and 1 and
3 would no doubt (I mean probably) have had some meaning to the
original programmer, which might be discerned from the code.

Response.Redirect will redirect the browser to the store.asp page, with
those parameters in the querystring

--
Mike Brind

Sep 5 '06 #2
al***************@gmail.com wrote on 5 Sep 2006 06:56:05 -0700:
Dear All,

I am new to ASP/ASP.Net and am trying to workout the exact meaning of
some old ASP Classic code. Can anyone please explain the meaning of
the following line of code:

Response.Redirect("store.asp?r=1&m=3")

In particular I need to understand the parameters (i.e. r=1&m=3) that
are being passed, and if they are defaults where can I get a listing
and explanation of their meanings and uses?
They are query string parameters. If you look in the store.asp code you'll
likely find it reads the values of Request.QueryString("r") and
Request.QueryString("m") and does something with them. Outside of code
within the store.asp page they are meaningless.

Dan
Sep 5 '06 #3
al***************@gmail.com wrote:
Dear All,

I am new to ASP/ASP.Net and am trying to workout the exact meaning of
some old ASP Classic code. Can anyone please explain the meaning of
the following line of code:

Response.Redirect("store.asp?r=1&m=3")

In particular I need to understand the parameters (i.e. r=1&m=3) that
are being passed, and if they are defaults where can I get a listing
and explanation of their meanings and uses?
This is a querystring, which has exactly the same function in ASP.Net as
it had in classic ASP.
--
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.
Sep 5 '06 #4

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

Similar topics

3
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...
5
by: Hugh Welford | last post by:
Hi, is it possible to open a page in a new window with response.redirect, and if so, what is the syntax Thanks Hugh
0
by: Simon Prince | last post by:
Hi I have an classic ASP page that contains nothing else but the following code... <%@ Language=VBScript %> <% Response.clear Response.redirect("/Intranet") %>
2
by: Oney | last post by:
I send a popup to client then I redirect to the main page but the popup doesn't raise. If I comments the Response.Redirect line the popup is raised How can I solve this problem??? thanks ...
15
by: Drebin | last post by:
I am retrofitting a central login application and want to be able to read the Request.ServerVariables so that when they have logged on, I can send them back to wherever they were trying to go.. ...
4
by: Vi | last post by:
Hi, I have an <asp:Button> control on a page. When it is clicked, I run a db stored procedure and then I want to go to the next page by executing a Response.Redirect("NextPage.aspx?id=" + myID)....
5
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
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
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
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
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...
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...
1
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
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,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.