Classic ASP ComponentsDiscussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Components 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
I want when someone tried to access my web site to be redirected to another page to imform the visitor that the site is unavailable at these moment in case of upgrading the web
How can I do it with ASP and if I can do it automaticly
You could use an application variable to flag whether your site is up or down. Then you would need to:
- check this flag at all your entry points, which could be easily done by adding a function to an include file
- produce a new page to update the flag. Be careful to restrict access to this page to admins only.
Other alternatives for storing such a flag are the registry on the webserver or the db if your app has one.