Category Archives: Snippets

Problems with ResourceManager and neutral culture in Asp.Net MVC

I’ve been struggling with this for a couple of hours now and found a solution that I would like to share. The problem is this: I added a [..]

Snippets , ,

Adding a new Jquery UI theme to the default Asp.Net MVC 3 Project

The default project template for Asp.Net is pretty functional out of the box, but an interesting feature is that new templates install jQuery and jQuery UI out of [..]

Snippets , , , , , , ,

AjaxOnly actions and controllers in Asp.Net MVC

Currently as part of my work I find myself doing a lot of client-side work (using the excellent ScriptSharp I might add) and this does involve a lot [..]

Snippets , , , , ,

Top 3 jQuery Tools

While I wait for my shiny new download of Visual Studio 2010 SP1 to install, I just thought I’d share a couple of awesome frameworks and plugins I’ve [..]

Snippets , ,

Ninject.MVC3 no longer on Nuget (or is it?)

It seems that within hours of posting my article on Dependency Injection: A Beginner’s Guide, some things had changed with the Ninject packages available on Nuget. The article [..]

Snippets , , ,

SyntaxHighlighter Evolved and Chrome

While performing some housekeeping on this blog today I couldn’t help but be slightly frustrated by the unsightly vertical scrollbars which appear on the code snippets that I [..]

Snippets , ,

Redirecting to an action with an anchor with Asp.Net MVC

There are those times when you want to redirect to a route from inside your Asp.Net MVC controller and tag an anchor name (#myanchor) on the end, whilst [..]

Snippets , , , ,

Asp.Net MVC 3 Areas and _ViewStart.cshtml Scope

I came across a problem today (or should I say misunderstanding) with MVC 3 (RC) and the _ViewStart.cshtml file. In case you haven’t used these yet, the _ViewStart.cshtml is [..]

Snippets , , ,

ScriptSharp, System.dll and build errors

Having discovered the excellent ScriptSharp project just a few weeks ago, I began to encounter errors with the project in that sometimes it would cease to build successfully. If [..]

Snippets , , , , ,

Testing for a jQuery object in Javascript

I’ve just spent an inordinate amount of time trying to figure out how to test if an object in Javascript has actually been extended using jQuery or not. [..]

Snippets , ,