Monthly Archives: November 2012



Office Night-Out

Welcome to CodeSpread!

C#: My experience with const keyword

There are numerous post on internet about ‘what is const keyword in .net’ or ‘what is the difference between const keyword and read only’ and I must say many might have already mugged it up like me I can bet, many of us might not have tried some exercise to learn the real implementation or…..

netbuiscuits

NetBiscuits: How fascinating can it be to create a mobile website?

My very first impression was like why do I need it, who wants to see a site on a mobile? How would a website be able to fit into my mobile without destroying the look and feel of a desktop site? Not so long ago, I remember behavior of a site varied in content display…..

Nullable .Net types

We declare .net types in our project daily but still we do not recollect default values for each .net type so we end up doing null check for each data type. Its a basic mistake of a developer but .net makes us intelligent with one of their operator, ‘?’ Nullable is represented by a ‘?’……

Useful ‘ref’ and ‘out’ parameters

It took me some time to realize the real potential of ref and out keywords, till the time I experience a condition which could only be simplified by implementing ref and out keyword. Lets start by a simple code example and will evolve while moving forward. public int CalculateSavings(int principal) { int result=0; //Calculate savings…..

Web-Response

Web-Page responses by PostBack, AutoPostBack, CrossPostBack, CallBack.

It is difficult to find a site on the internet which does not respond to user’s action. By user’s action, i mean to say, clicking on a button, selecting something from a list, navigation links. These are the actions which make the site to respond. The process is as follows- When you click on a…..