473,545 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Redire ct 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.Redire ct("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 8154

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.Redire ct("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.QuerySt ring("r") and
Request.QuerySt ring("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 "stopstandingon myfoot" with any string as the value (as in
store.asp?mouse =sink&stopstand ingonmyfoot=223 4cfd4). 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.Redire ct 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.Redire ct("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.QuerySt ring("r") and
Request.QuerySt ring("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.Redire ct("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
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 "http://www.domain2.com/VDIR2/table.asp" & "?PubID=" & PubID & "&PubName=" & PubName The query string is data to open a DB. the page displays
5
14176
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
1088
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
4201
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 Response.Write("<SCRIPT Language=Javascript> \n var...
15
15393
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.. If you try to load a legacy ASP app, I do this: If Len(SessionID) <> 40 Then Response.Redirect "/WAS/Default.aspx?AppCode=2400" End If
4
5877
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). The Response.Redirect always generates an Exception "Thread was being aborted." Is there a way to execute Response.Redirect without generating this...
5
4547
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...
4
11405
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 XMLHTTP object. However, when the page requested through the XML object makes a <%Response.Redirect()%> call, a new session is created each...
9
4332
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...
0
7465
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...
0
7398
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...
0
7805
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...
1
7416
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...
1
5325
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
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...
0
3449
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...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
701
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...

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.