Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use asp to change URL

0 views
Skip to first unread message

ew...@kmg.com

unread,
Jan 22, 2003, 6:27:23 PM1/22/03
to
I have a URL like the following to begin with:
http://myweb.com/default.asp/CIE_Point=116

Can I write something in default.asp to redirect a user to another URL like the following:

http://myweb.com/default2.asp/Product_ID=116

Thanks.

-----------------------------
This message is posted by http://Asp.ForumsZone.com

Atrax _

unread,
Jan 22, 2003, 9:07:10 PM1/22/03
to
sure

<%
Response.Redirect("defasult.asp?product_ID=" &
Request.Querystring("CIE_Point"))
%>


by no means rocket science.

________________________________________
I got bored with my old signature,
so I changed it

Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

eddie wang

unread,
Jan 23, 2003, 1:18:59 PM1/23/03
to
Thanks and I think your approach will work well. Could you please help
me in putting the code into a html or asp page?

<%
Response.Redirect("defasult.asp?product_ID=" &
Request.Querystring("CIE_Point"))
%>

Richard Hockey

unread,
Jan 26, 2003, 6:58:31 AM1/26/03
to

"eddie wang" <ew...@kmg.com> wrote in message
news:es1gnvwwCHA.2332@TK2MSFTNGP09...

> Thanks and I think your approach will work well. Could you please help
> me in putting the code into a html or asp page?
>
> <%
> Response.Redirect("defasult.asp?product_ID=" &
> Request.Querystring("CIE_Point"))
> %>

Save the above script in a file 'redirect.asp'

When you call this file, use

redirect.asp?CIE_Point=n

where n is the id number of the page you want to redirect to.


Atrax _

unread,
Jan 26, 2003, 7:31:38 AM1/26/03
to
> Thanks and I think your approach will work well. Could you please help
> me in putting the code into a html or asp page?

> <%
> Response.Redirect("defasult.asp?product_ID=" &
Request.Querystring("CIE_Point"))
> %>

eddie. really.

you need to learn some ASP.

www.asp101.com
www.learnasp.com
www.aspin.com
www.4guysfromrolla.com
www.aspfaq.com
www.aspfaqs.com
and so on...

________________________________________
I got bored with my old signature,
so I changed it

*** Sent via Developersdex http://www.developersdex.com ***

0 new messages