Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2006, 07:29 PM
Registered User
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Redirect from a folder to another page.

How can I Redirect a folder to another page. Like this:
Under folder USA, a sub-folder called ADMIN, under ADMIN, there is a page called Default.asp which contain response.redirect("http://other.asp")

How can I every time type in, FOR EX:
Http://USA.com/ADMIN,

it will redirect me to http://other.asp

Thank you in advance.

 
Old December 13th, 2006, 07:36 PM
Registered User
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am silly. I already made it successfully before I sent out the email. I just look from the different routine. Thanks guys.

One Response.redirect will work fine.

 
Old December 13th, 2006, 07:38 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;How can I Redirect a folder to another page
mmmmmm, thats confusing - you can re-direct a page inside a folder to another page

Where does other.asp sit?

[usa] > [admin] - default.asp

if other.asp is inside the [usa] folder:

response.redirect("../other.asp") should do it. Hope I have understood your question?

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page redirect help jroxit Classic ASP Basics 7 August 11th, 2008 11:01 AM
redirect to page other than default page sarah lee ASP.NET 1.0 and 1.1 Basics 3 December 15th, 2006 05:45 PM
Redirect to new page without closing current page peter2004 ASP.NET 2.0 Basics 5 June 5th, 2006 08:49 PM
Redirect to next page qazi_nomi Javascript How-To 1 September 1st, 2004 02:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.