HtmlTag, it's the new TagBuilder

Hello again! Long time no see. Today’s post will be nothing but advertising for my latest and greatest open source library called HtmlBuilders. It’s even conveniently available as a Nuget package, so what are you waiting for? (All the cool kids are using it, so why not you?) Okay maybe I should elaborate a bit and tell you why you would want to use this. To do that, we must pay a small visit to the past: do you remember my earlier post about the TagBuilder in C#? You can go check it out, I’ll wait. ...

August 31, 2013 · 4 min · Alexander Moerman

A generic approach to data tables with server-side processing

A little library that provides a generic way to use jQuery Datatables with ASP.Net MVC 4 Update to future readers: this code is no longer maintained! Use at your own risk, the Github repository should be seen as a pointer on how this can be done, not as a drop-in library to consume. This is going to be a long post. Don’t say I didn’t warn you! If you’re not one for long texts (but why are you reading blogs then?), today’s post in the ‘who-needs-hobbies-anyway’ series is all about https://github.com/amoerie/generic-datatables ...

March 8, 2013 · 6 min · Alexander Moerman

Automatic injection of models to nested Data Transfer Objects (DTOs) and vice versa with ValueInjecter

The DTO pattern is often used in multi-layered applications where data is transfered from one layer to another, where -preferably- we keep the data being transfered to a minimum. One of the issues I’ve ran into while applying this pattern is the use of nested DTO’s and automatic mapping from DTOs to models and vice versa. Allow me to clarify with an example: Suppose I have a .NET MVC application where I want do perform some simple CRUD operations on the following domain classes, Person and Address: ...

December 22, 2012 · 7 min · Alexander Moerman