C#’s null coalescing operator

November 14th, 2007

I’ve been programming in C# for about five years, and today whilst reading the C# language specification v3.0, came across the null coalescing operator.

Much like T-SQL’s ISNULL function, the operator replaces null values with the specified replacement value.

Read the rest of this entry »

Write your own Visual Studio .NET Snippets to improve your coding productivity

November 7th, 2007

Chances are that if you’ve been using Visual Studio .NET, you’ll have come across the concept of snippets - useful reusable chunks of code that are inserted after typing in a small textual identifier for that snippet. This tutorial describes Visual Studio .NET snippets and describes how you can create your own.

Read the rest of this entry »

Happy birthday to the BBC Website

October 29th, 2007

I’m reminded again today of how quickly time has passed with this story on the BBC Website.  I find it incredible that it’s 10 years since I first visited their site, a time when I was at university, studying computer science. Read the rest of this entry »

Deleting directory on ASP.NET 2.0 site causes Session invalidation

October 22nd, 2007

The other day, I had a niggling issue with session data. Initially, I could see no reason for my in-proc session data being lost between postbacks. Read the rest of this entry »