There is an HTML5 (originally IE extension) property frameElement on window: alert(frameElement.id); But this is not globally supported; you won’t get it in Google Chrome (at the time of writing; version 7) or in older versions of the other popular non-IE browsers.
Here is a step-by-step instruction how to configure Visual Studio with Team Foundation Server source control to use WinMerge instad of default viewer for file diffs and merging. The original instruction was taken from Neovolve site In Visual Studio do…Continue Reading →
When you’ve been working heavily with c# for a few days, coalesce jumps into your head for a lot of c# issues. Heres a little helper to provide coalesce in .net /// <summary> /// Returns the first non null value,…Continue Reading →
I had a requirement for a series of select boxes that required the related one to only allow selections above the first. I created a little utility function that enables and disables the options based on a function you supply….Continue Reading →
Utility to take a number and convert it to the english text. Not mine this one but lost the original url! If it’s yours let me know 😀 public class NumberToWords { // Single-digit and small number names private string[]…Continue Reading →
Ever had controls that need to add to the Query String but not duplicate or erase what’s already there? This is a little utility I dug out and just changed to use a generic dictionary recently. Just use it as…Continue Reading →