Martijn Veken


Just having
some fun with .NET

Cool ASP.NET 2.0 trick

ASP.NET 2.0 has got a very cool and easy way to take your website offline:

Just place a file called app_offline.htm in the root of your website and your worker process will be stopped.
The static app_offline.htm page will then be served to the users of your site to inform them that your site is temporary offline.

To restart your site just remove (or rename) the file and your website is back online!

Now that's what I call cool!

Comments

mayur said:

not working in IE 7.0

# January 22, 2007 11:47 PM

Martijn Veken said:

That would be strange, because this is all handled at the server side. It's not a client thing.

# October 23, 2007 11:35 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 7 and 3 and type the answer here: