Tag Archives: c#

ScriptSharp: Taking care of ‘this’

Making sure ‘this’ points to exactly what you think it does in Javascript is one of the challenges that a new programmer to the language has to overcome. [..]

Articles , , , ,

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 , , , , ,

Dependency Injection: A Beginner’s Guide

This article intends to outline the concept of Dependency Injection and its uses within a software engineering project. From Wikipedia.org: “it is a design pattern that separates behaviour [..]

Articles , , , , , , ,

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 , , ,

Data Caching with .Net 4.0 and Asp.Net MVC – part 3

Welcome to part 3 of this short data caching series. In the previous parts we had a look at how we can employ smart in-memory data caching to [..]

Articles , , , , , , ,

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 , , , , ,

Asp.Net and Colorbox: Creating a ‘delete’ confirmation dialog

This article was inspired by a friend of mine who wanted to implement a delete confirmation dialog in his website, and I thought it might be a useful [..]

Articles , , , ,

Machine-specific Asp.Net configuration settings

One of the first things we noticed when we began to use version control to manage our source code is that configuration settings across multiple machines became unmanageable. [..]

Articles , , , ,