Monthly Archives: November 2008

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 object that [...]

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 this is [...]