Website under maintenance

 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.
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. 
Next Recommended Reading How to Send Mail form Asp .Net Website