Wrox Programmer Forums
|
Classic ASP Components Discussions 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
 
Old June 10th, 2003, 09:05 AM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default message when Web site is upgrading

Hello

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

thanks
 
Old June 10th, 2003, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.

hth
Phil





Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between web application and web site manojm39 ASP.NET 2.0 Basics 2 August 10th, 2007 09:06 AM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
Dreamweaver Site Busy Error Message MarkL Dreamweaver (all versions) 7 February 1st, 2005 05:17 PM
unique name for Web site anshul Linux 0 December 30th, 2004 07:13 AM
Developing a web site not a web application mkerchenski ASP.NET 1.0 and 1.1 Basics 8 May 25th, 2004 09:03 AM





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