Thanks FtB. That is basically what I want to do, but how do I do that?
Main Topics
Browse All TopicsI am creating a database of information on parks and tourism destinations. Then, visitors will be able to learn more about these destinations using ASP pages. So far so good. In the case of major destinations I want to create entire sections of the website specific to the destination. In these cases, I want visitors to be directed to these pages rather than the database served pages.
Here is what I mean.
For most destinations, the database record will include a short description, contact information and a list of things that you can do there.
In other destinations, I may have dozens of pages detailing the site.
I use a step-by step approach visible on http://www.mountainnature.
Here is my idea. Have a yes/no database field called redirect and another one with the url. When the ParkFinderResults.asp page is loaded, if the redirect field is yes, than the page wil be redirected to the page in the url field.
I hope this makes sense. If there is a better way to handle this I would appreciate your help. I can easily pass the Redirect AND the URL parameters from the page prior to ParkFinderResults.asp.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
One way:
<meta http-equiv="refresh" content="0;url=http://www.
But it would just be easier and more reliable to put a redirect on the page:
Response.Redirect("YourPag
FtB
I've gotten to the point where I can send the values. Here is the query string collection from one of the records:
Request Sniffer
--------------------------
From QueryString collection - GET
Total # of values = 3
Entire QueryString Collection as String:
DestID=8&Redirect=True&URL
DestID 8
Redirect True
URL 'http://www.mountainnature
Now I just need a way to say if Redirect = "True" then redirect to URL, otherwise go to ParkFinderResults.asp with the appropriate DestID.
It should work but it doesn't. I think it is the slash "/" and the periods that mess things up. I just get a HTTP/1.1 404 Object Not Found error.
Here is the code:
<%
If Request.QueryString("Redir
response.redirect(Request.
else
response.redirect("ParkFin
end if
%>
Now if I select a site that has no value for the Redirect field, the page IS properly redirected to ParkFinderResults.asp as stated under the else portion.
If I change the If statement to
If Request.QueryString("Redir
response.write "should be redirected"
I do see the "should be redirected" printed so I know it has read the Redirect = "True" from the query string.
The problem is in the interpreting of the url. I had this problem with another page and it was solved using post rather than get, but in this case I don't have that option because I need to send numerous parameters at the same time.
Business Accounts
Answer for Membership
by: fritz_the_blankPosted on 2006-01-01 at 12:39:07ID: 15588148
That is fine. One other option might be to serve a page that redirects, i.e., your saved database page is simply a redirect where appropriate.
FtB