Click here to Skip to main content
12,248,994 members (31,245 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

53.9K views
32 bookmarked
Posted

Put the website in Maintenance Mode (Under Construction)

, 25 Dec 2011 CPOL
This Tip/Trick shows how to make the website available only for the local clients

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

6 Jul 2011
Graeme_Grant
There is also the "app_offline.htm" in the root path
27 Dec 2011
Mukund Thakker
Here is the source code for another solution:Global.asax:void Application_BeginRequest(object sender, EventArgs e){ if (ConfigurationManager.AppSettings["MaintenanceMode"] == "true") { if ((ConfigurationManager.AppSettings["ByPassUrl"].Contains( ...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Bahram Ettehadieh
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
I hold a BS degree in software engineering and am a Microsoft Certified Solution Developer(MCSD).
I have more than 8 years of experience in .NET developement, mostly web develop using C# and ASP.NET.

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160426.1 | Last Updated 25 Dec 2011
Article Copyright 2011 by Bahram Ettehadieh
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid