I got few comments requesting to have the same sample in VS2010 and .NET 4.0. I also did some enhancement to folder structure and created separate Factory project instead of putting all the code in Consol Application. Below is the Solution Structure.
I hope you all will find it useful. Thanks all for your valuable comments. Please keep it coming.
Also I am planning to start a new series related to UI with jQuery as backend. Lets see how that goes.
You can download the source code in C# from below URL: