There are two ways I’ve found on how to call a resource file from JaveScript and it is largely dependent on where your JavaScript lives. Does it live within a <SCRIPT> tag embedded within your aspx page or does live within a .js file. Embedded within a <SCRIPT> tag within your aspx page: [js light=”true”]… Continue reading Using the resource file from within JavaScript
Month: October 2011
How to minify your javascript files
One the easiest ways to minify your js files is to use an online tool like http://javascriptcompressor.com/ Simply paste in your js code into the first text box and select compress and wallah.
little known, little used C# operators – null-coalescing operator (??) and the ternary operator (?:)
I was reading through some code over the weekend and came across a null-coalescing operator. So I thought I would write a blog post about it and the ternary operator. null-coalescing operator (??) x = y ?? z If y is null, then z is assigned to x, otherwise y will be assigned to… Continue reading little known, little used C# operators – null-coalescing operator (??) and the ternary operator (?:)