Random thoughts of wisdom - the personal blog of Michael Holm Andersen

Free e-books

Syncfusion have released a bunch of free e-books which you can download here: The topics include (not complete list): - Typescript - jQuery - Windows Azure - Unit Testing - Knockout.js + other very inter... [More]

Looking at ASP.NET MVC 3

I’m in the process of re-writing to use ASP.NET MVC 3 and are planning to use the new view engine (“Razor”). For more info about this, take a look at

ASP.NET MVC Best Practices

Kazi Manzur Rashid has put together a blog post (in 2 parts) about ASP.NET MVC Best Practices which is worth reading if you’re working with ASP.NET MVC. ASP.NET MVC Best Practices (Part 1) ASP.NET MVC Best Practices (Part 2)


Jeffrey Palermo has an inspiring article about templating and (why not) to use .ascx aka UserControls in ASP.NET MVC – I’ll definitely be using this approach:

jQuery IntelliSense on ASP.NET MVC

If you’re using ASP.NET MVC, you’re probably also using jQuery and hence would like to have IntelliSense support in your ViewPages. According to Scott Gu all you need to do is to make sure you’re having the “-vsdoc.js” file in your script folder (e.g. “jquery-1.3.2-vsdoc.js”) and VS2008 (with the pa... [More]

LINQ Projection and SelectListItem

A small example of where LINQ Projection might come in handy is when you’re working with MVC. In the below example LINQ Projection is used to transform a enumeration of EmployeeCategory instances into an enumeration of SelectListItem instances: var rep = new mhaRepository(); var person = rep.GetP... [More]

ViewData and the null-coalescing operator

If you’re using ASP.NET MVC and are using the ViewData collection you might want to familiar yourself with the ?? operator. The ?? operator is called the null-coalescing operator and is used to define a default value for a nullable value types as well as reference types. It returns the left-hand op... [More]