This is part 4 of a series of posts. See also:

In the previous posts, I described how we implemented model-based validation on the server-side in Cuyahoga with ASP.NET MVC and as the icing on the cake, we also added some client-side validation (also model-based).

Now, everything can be found in the Cuyahoga SVN sources but I have to agree that it can be a daunting task to check out the complete sources and find all pieces of the validation puzzle. Therefore, I’ve created a little sample application with everything from the previous posts combined.

validation-sample-app

Hopefully, this will make things a little bit clearer. You can download the sample app here. Visual Studio 2008 and ASP.NET MVC Beta are required.

Enjoy!

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

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

  • January 2, 2009 at 1:08 pm
    Permalink

    Thanks for submitting this sample.
    Very helpful.

    Cheers.

  • January 2, 2009 at 1:57 pm
    Permalink

    I don’t clearly understand it all, but as far as I know, you declare/add "options" (in AddParameterToOptions()), but never output them as Javascript (in CreateBeforeFormClosed()).

    My two cents.

  • January 2, 2009 at 2:07 pm
    Permalink

    Those options were just copied from the Monorail JQuery validator and as far as I can see, you could remove these.

Leave a Reply

Your email address will not be published. Required fields are marked *