< Browse > Home / Archive by category 'Programming'

| RSS

What Is Microsoft Windows Azure?

This video is by far the best explanation I have seen. It cannot get any simpler and smarter. Original source of the video is Channel 9.

[ More ] July 1st, 2009 | No Comments | Posted in Programming |

Silverlight Predefined Colors – What Color Are They?

While writing Silverlight applications, I find it challenging to pick colors from the list of predefined colors supported by Silverlight. Honestly I don’t know what those fancy colors look like. There! I said it!. Happy? To overcome this issue in true developer style, I wrote a small utility which shows all predefined colors on a [...]

[ More ] June 30th, 2009 | No Comments | Posted in Programming |

Silverlight Wrap Panel

Wrap panel in Silverlight is missing out of the box, but this need is fulfilled by Silverlight Toolkit which also includes many other controls. In this post we will look at WrapPanel. I will show you how to use it and what it is used for.
To use wrap panel you have to install Silverlight Toolkit. [...]

[ More ] June 28th, 2009 | No Comments | Posted in Programming |

Silverlight Canvas Panel

Panels are basic layout mechanism in both Silverlight and WPF. They act as containers for other controls and each panel provides a different way of laying out controls on the screen. In this post we will look at Canvas Panel in Silverlight. Canvas allows us to put controls based on x and y  coordinates. This [...]

[ More ] June 25th, 2009 | No Comments | Posted in Programming |

Request Error In ADO.NET Data Services

When creating a new ADO.NET Data Service you may find yourself with this error.

Don’t call it quits on ADO.NET Data Services because of this error. It is very easy to fix. Have a close look at the code generated by Visual Studio for you.

Here the code calls SetEntitySetAccessRule on “MyEntitySet” but most likely [...]

[ More ] June 16th, 2009 | No Comments | Posted in Programming |

Find Unused CSS On A Website

During the course of a project we often end up adding elements to style sheets which do not get used. This causes css files to bloat which impacts performance. The best thing to do is to keep track of css elements which are not being used and remove them. This can become a strenuous task [...]

[ More ] May 28th, 2009 | 1 Comment | Posted in Programming |

Visual Studio 2010 Beta 1 First Look

For those who are following me on Twitter know how eager I was to get my hands on Visual Studio 2010 beta1. Today I downloaded it and installed it on my Windows 7 VM. This post is a random collection of my early observations. It is full of screenshots. Enjoy.
The start page had a new [...]

[ More ] May 19th, 2009 | 2 Comments | Posted in Programming |

SSMS Tools For SQL Server 2008

SSMS Tools Pack is a must have add-in for SQL Server Management Studio. It comes packed with a great set of features which as the author says on his site “…were missing from Management Studio”. Here is run down of three features I use most.
Text Format
If SSMS Tools Pack had only one feature and [...]

[ More ] April 27th, 2009 | No Comments | Posted in Programming |

Capture XML In WCF Service

Working on a project where we wrote WCF Services a need was identified to capture the raw xml passed in to the service operation and also capture the reply xml sent back by the service. WCF does not provide such facility out of the box but it can be easily implemented using behaviours. In this [...]

[ More ] April 1st, 2009 | 2 Comments | Posted in Programming |

Create T-SQL CASE Statements With LINQ To SQL

I was recently helping Nosh with a LINQ To SQL query where he wanted the resulting T-SQL query to have CASE statements. Having CASE statements in T-SQL queries is a common scenario but how do we it in LINQ To SQL .After some investigation I found the solution which I am presenting here using an [...]

[ More ] March 24th, 2009 | No Comments | Posted in Programming |

SQL Server – sp_spaceused Use The Right Way

To find out the space used by a table we can use sp_spaceused procedure. Most of the times sp_spaceused will give correct information. Why do I say most of the time? Well consider this example. I just inserted a large amount of data in Orders table in Northwind database and ran sp_spaceused.
EXEC sp_spaceused ‘Orders’
which returns [...]

[ More ] March 19th, 2009 | No Comments | Posted in Programming |

Download Entire SharePoint 2007 Technical Library In CHM

The title says it all.
Here is the Link.

[ More ] March 19th, 2009 | No Comments | Posted in Programming |