473,371 Members | 1,731 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,371 software developers and data experts.

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 8122

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)....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.