Author Archives: martijn

Validation in ASP.NET MVC – part 4: example with server-side and client-side validation 3

This is part 4 of a series of posts. See also: Validation in ASP.NET MVC – part 1: basic server-side validation Validation in ASP.NET MVC – part 2: custom server-side validation Validation in ASP.NET MVC – part 3: client-side validation with jQuery validation In the previous posts, I described how we implemented model-based validation on [...]

Validation in ASP.NET MVC – part 3: client-side validation with jquery validation 4

This is part 3 of a series of posts. See also: Validation in ASP.NET MVC – part 1: basic server-side validation Validation in ASP.NET MVC – part 2: custom server-side validation In the first two parts, I showed how you can perform validation on the server side with Castle Validation attributes and extend that model [...]

Embrace the impedance mismatch 1

Maybe I’m a bit of a masochist, but I enjoy a good flamewar at times. For that reason, I still have TheServerSide.com in my bookmarks to check out what our Java friends are bitching about. My favorite subjects are ‘the new web framework of the month’ and the occasional persistence framework rants. Today, I checked [...]

Hidden jewels in the Castle stack: Transaction Services Comments Off

In Cuyahoga, we’re using a lot of components from the Castle stack. Some of the most brilliant components are the transaction services combined with the automatic transaction facility. With this post, I’m trying to bring some well-deserved attention to these undervalued components. The Context Today, I was working on management of sites. In Cuyahoga 2.0, [...]

Validation in ASP.NET MVC – part 2: custom server-side validation Comments Off

This is a post in a series of posts. See also: Validation in ASP.NET MVC – part 1: basic server-side validation In the first post of this series, I showed how you can perform basic server-side validation on your model with help of the Castle Validator component. To summarize this post: the controller validates an [...]

Validation in ASP.NET MVC – part 1: basic server-side validation 3

Almost every single application has to deal with validating user input. With web applications, you can choose to do the validation on the client side or on the server side. In my opinion, validation should at least take place on the server side and optionally on the client side to improve the user experience. Therefore, [...]

A new experiment Comments Off

Last week, I started to do some serious Cuyahoga development again and I’m going to try a new development methodology: blog-driven-development. A few days of development brought up so many interesting things, so I decided that I might as well write about them (in fact, I already started it because this post was also triggered [...]

NHibernate criteria queries across multiple many-many associations Comments Off

Recently, I ran into an issue with NHibernate Criteria queries. The scenario is the following: User has a many-many association with Role and Role has a many-many association with Site. I simply wanted all users that belong to a given site (and a whole slew of other optional parameters, therefore the Criteria query). With hql [...]

Paging with ASP.NET MVC 4

Updated 2009-02-04: Upgraded source and demo to ASP.NET MVC RC1 Updated 2009-01-16: Upgraded source and demo to ASP.NET MVC Beta Updated 2008-09-09: Source and Demo now use ASP.NET MVC preview 5 On my latest gig, we used ASP.NET MVC and it was a very pleasant experience! Very clean code, clean html output and the productivity [...]

Introduction Comments Off

Hi, my name is Martijn Boland. For a living, I develop software and try to help other people building better software. Together with Erwin Berends, I own a little software company in the Netherlands called Taiga. I’m also the lead developer of the Cuyahoga CMS project. In this blog, I’m mainly going to write about [...]