468,532 Members | 1,612 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,532 developers. It's quick & easy.

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 7803

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Paul | last post: by
5 posts views Thread by Hugh Welford | last post: by
2 posts views Thread by Oney | last post: by
4 posts views Thread by Vi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.