Tag Archives: ASP.Net

Resolved-error

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…..

Asp.Net: More about Cookies

We have seen, how our cookies looks in our last article Cookies Part 1. In this article, we will talk about their properties,limitations and technical part. Properties and Limitations Cookies are associated with website and not single pages. Cookie is stored in our system as Text File. They are stored in plain text format i.e……

Asp.Net: Hidden Truth of Cookies

I know there are several articles on cookies as what are they? and how can they be created? but i always wanted to know more about them. My questions were where they are stored? how to track their expiry? If they contain user centric information then Can they be encrypted? Lets explore each of my…..

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 =…..

json

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…..