Website under maintenance

Introduction:
 
 In this article i am going to tell you about a simple but interesting feature of .NET that has been lying around for a while.
 
Overview:
 
Many times developers come across situations where they have to abruptly bring down a website for maintenance.A very useful and cool feature in .NET is App_Offline.html file.
 
Place this file in your root application directory in IIS and just restart IIS. You see the magic.
 I have attached the html file for your reference.
 
Once you are done with your maintenance activity,just rename or delete the file from the root application folder in IIS.
Restart IIS and your website is back!!! 
 
Note: The file size should be a minimum of 512 bytes.Othewise you would get a http 404 error.