How to Use ViewModels Without Sacrificing Encapsulation

I have been using ASP.NET MVC extensively over the past year, and the more I use it, the more I like it. However, there remain a couple of things that bug me. One is the fact that the built-in validation doesn’t work with repeating forms. The other is the “best practice” of placing Data Annotations […]
Read More ›

Validating That At Least One TextBox Has Content

I came across an interesting little validation problem on my current project. The site is for members only – and in order to become a member, you need to be nominated. You can provide either one or two nominators, but you must provide at least one. So how to force users to enter text in […]
Read More ›

Data Annotations and ASP.NET MVC Validation

Update: Bart’s comment below got me thinking, so I’ve written a follow up post exploring this further and discussing the difference between binding a collection (where the validation etc will work) and working with repeating forms (where either the client or the server will have issues). I’m a big fan of validation using Data Annotations as […]
Read More ›

Type to search blog.learningtree.com

Do you mean "" ?

Sorry, no results were found for your query.

Please check your spelling and try your search again.