Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP-redirectpage, please help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

keker
Starting Member

5 Posts

Posted - 15 June 2001 :  13:39:57  Show Profile  Visit keker's Homepage
I just want to make an ASPpage that redirects to an htmlpage like:
redirect.asp?cat=1 redirects to index.htm
and redirect.asp?cat=2 to start.htm
Please help me.
www.hutsepot.com



Edited by - keker on 15 June 2001 13:41:59

gor
Retired Admin

Netherlands
5511 Posts

Posted - 15 June 2001 :  13:52:07  Show Profile  Visit gor's Homepage
Try this:

<%

intCatRedirect = Request.QueryString("cat")

if intCatRedirect = 1 then
Response.Redirect("index.htm")
else
Response.Redirect("start.htm")
end if

%>

Make sure there is no HTML in redirect.asp before the redirect !
There needs to be nothing more in that page than the code you see here so no <HTML></HTML etc.


Pierre
Join the Snitz WebRing
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07