Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 November 10th, 2006, 07:08 PM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to put "Unavailable" message in all pages?

Hello!

There are many ways to enter in my site (equal to thephille)

If someones try to enter using:

www.thephilleVb.com/default.aspx
www.thephilleVb.com/accounts.aspx
www.thephilleVb.com/forum/default.aspx
www.thephilleVb.com/forum/topic.aspx?topicid=117
...
etc

But, how can i put all my pages "unavailable" easy and quickly?

for other words, if i want to work on my uploaded website tonight, what can i do quickly for make all page redirect to a single page saying "temporarily unavailable. We come back soon"

Any Sugestion ?


Thanks a lot!
Max



 
Old November 12th, 2006, 11:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is easy in 2.0, but there's no built-in way to do it in 1.1. It might be easiest to handle in global.asax (look at the application event handlers) or the base page, but this is not something I can do for you.

But using these methods means that you can't take all these files down at the same time. The app_offline method in 2.0 will do it nicely.

http://weblogs.asp.net/scottgu/archi...09/442332.aspx


 
Old November 13th, 2006, 02:15 AM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Englere!

I don't go to venture in asp 2 yet...

I don't have time if some problems occurs...

But thanks anyway! I'll go search more information about global.asax






Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Application Unavailable td_ma ASP.NET 1.0 and 1.1 Basics 0 October 27th, 2008 03:15 AM
Service Unavailable i_shahid Classic ASP Professional 0 September 9th, 2008 03:49 AM
Servlet 'Start' is currently unavailable k209310 Servlets 1 August 26th, 2004 10:57 PM
Chapter 1: "Server Unavailable" message tcruz345 BOOK: Beginning ASP.NET 1.0 1 September 11th, 2003 02:17 AM





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