As we all are aware that Windows Phone 7 is a huge success in the market, and Microsoft is really committed to keep the bar raising with every release. Windows Phone Mango will be the next major release in the smart phone market. Though there are multiple unanswered questions we have at this moment, there […]
Presentation : Showcase – Azure SDK 1.3 & The New Azure Management Portal
It was a nice interaction with the user group of hyderabad on the new features available on Azure since SDK 1.3. The camp also helped me in learning more about technologies and the reach of Azure in local developer world. I am happy to upload my presentation here on the same and please send in […]
Exception: Value For One Of The Query Parameters Specified In The Request URI Is Invalid at CloudBlockBlob.PutBlock Method
If you are encountering this exception on CloudBlockBlob.PutBlock method, then you might be one of the unfortunate developer who is trying to figure out what went wrong without much support from the exception object. Though there are many reasons for the same, one of the common mistake is the encoding we use. Let me detail […]
Localization / Multilingual Support Using Resource Files In .net
Download Demo Localization.zip (258.06 kb) Localization for a multilingual application is every developer’s nightmare. With .net it is not a tough programming as most of the algorithm is already available. Well in this article we will discuss on how we can achieve localization using resource files. In our sample attached, I have added a resource […]
Tip: Null Coalescing Operator To Define Default Value For Nullable Types – Double Question Mark
We all know that defining a nullable type in C# is very simple as below int? value; And when you want to check whether the value is null, then there are definitely multiple way you could do. // First option. if(value == null) { //Write the code here } // Second Option. if(!value.HasValue) { //Write […]
Tip: Customizing / Adding Image To Radio Button List Control
Today I will share a tip through which you can customize the way your RadioButtonList control will look. Below is a simple code which will enable to add me icons for the radio buttons in the list. protected void ErrorPriority_DataBound(object sender, EventArgs e) { try { foreach (ListItem item in this.ErrorPriority.Items) { Priority priority = […]
Sort Generic List Using Lambda Expression For Dynamic Type And Dynamic Property
I once stuck on a requirement where I needed to write a code which is flexible and generic enough to sort any type of collection and also the property based on which it has to be sorted will be dynamic. After trying many options I discovered myself how easy it is to hit this requirement […]
Multiple Sort For Collection Using LINQ
There are quite a lot of instance where you need to do a primary sort and you need a secondary sort on the same collection and sometimes even multiple sort. With LINQ we can achieve it pretty straight forward. Let us assume the situation here. We have a list of employees and we need the output to be sorted […]
Unleashing ASP.net Calendar Control
Download Sample CalendarDemo.zip (171.18 kb) Introduction Calendar control is as important as a normal text box control in any application. Most of any application which needs data entry will definitely need a calendar control at some part. ASP.net has a very good calendar control which we often ignore without exploring how far it can be […]
Getting Added And Deleted Items In A List Using LINQ
Most the time when we work with a list object, finding a newly added items or deleted items becomes a very trivial part of the logic. Sometimes, we endup writing sophisticated logic or loops to get this done. Below code will demonstrate how this can be easily done using LINQ. Lets assume that we have […]