Tag Archives: ASP.Net

Don’t Mess with App_Offline
Welcome to CodeSpread!One of the most useful features of ASP.NET is the “App_Offline.htm” . It provides a much easy way to make the ASP.NET application offline while we do our modifications on the site. How we do it? We just create a file and name it exactly as ‘app_offline’ and place it in the root of…..
Note: GZipStream
A short note from my experience: From the name itself you can at least make a guess about the functionality of the GZipStream class(present under: System.IO.Compression). Yes..your guess is absolutely correct. It compresses data. There are various application of this class and is very efficient too. It saves data in the form of compressed files……
C#: Anonymous Type is not anonymous!
Why Anonymous Type? Anonymous types provide you the ease of having set of properties (Read only) into a single object without knowing the type. It’s the job of compiler to generate the type information. Anonymous types can be created by using the keyword new. Say: var test = new { Name = “Jackie”, ID =…..

C#: Useful JSON in .Net
Why JSON? All web applications revolve around large chunk of data and availability of that data to our application is of utmost importance. To do that, we have options like fetch data from database and sometimes from XMLs. As a result of which we end up hitting DB/File system several times and ultimately compromises with…..









