Tuesday, May 26, 2009

How to make an ASP.Net application offline within second

Sometime it neccesary to make an application offline, it may possible due to code upgrade process or essential data upload. Before ASP.Net framework 2.0 era, normally we will place a code on global.asa or global.asax to set a application variable to indicate offline status to true, then programatically read this status and redirect to specific page to inform if an application is offline.

There is an approach to make it simple for a developer to make its application offline on ASP.Net 2.0, by using app_offline.htm. Simply just design a page using standard HTML editor and named it as app_offline.htm then place this file on root of application that you would offline it.

No comments:

Post a Comment