Category Archives: Reference

Using Ellipsis in CSS

It can be a bit tricky getting CSS ellipsis working, so here’s a simple example: I’ve created a JSFiddle example. Advertisements

Posted in Reference, Tips and Tricks | Leave a comment

How to Deserialize Derived Objects in Json.NET

Imagine you need to process some JSON that looks like this: Notice how the array contains similar objects, two vehicles. Each vehicle has a “type” property that identifies the specific type of vehicle. If we wanted to deserialize this into … Continue reading

Posted in Reference | Tagged , | Leave a comment

Wrapping JsonResults in ASP.NET MVC

Like a lot of web developers I like to load page content dynamically but this can cause problems if the Ajax request causes an error on the server. Timeouts can be handled in jQuery but what if the user needs … Continue reading

Posted in Reference, Tips and Tricks | Tagged , , , | Leave a comment

CSS Sprite Sheet Templates

Here are a few templates I’ve created to assist with building CSS sprite sheets. I use them to help space the images at regular intervals which makes the CSS positions easier to calculate. Just right-click to download them. 16 x … Continue reading

Posted in Reference | Tagged , | Leave a comment

Posting to Twitter with C#

In this post I’ll walk through the steps required to post to your own Twitter feed using C#. Step 1: Before you start you must register an application name with Twitter: dev.twitter.com/apps/new Step 2: Open Visual Studio 2010 and, using … Continue reading

Posted in Reference | Tagged , , | 2 Comments

WPF Expander HeaderTemplates – Don’t Forget The Binding!

Every time I customize an Expander in WPF using a HeaderTemplate, I make a critical mistake. I forget to set the binding for the header. Here’s a contrived example to demonstrate the problem – and the solution. Here’s what we’re … Continue reading

Posted in Reference | Tagged , , | 8 Comments

Posting to Facebook with C#

In this post I’ll walk through the steps required to register a Facebook app, and post to your own Facebook wall using C# and Visual Studio 2010. Step 1: Before starting, you’ll need to log on to the Facebook developer … Continue reading

Posted in Reference | Tagged , , | 6 Comments