Posts Tagged ‘ ASP.NET MVC 2.0 ’

ModelValidator in ASP.NET MVC 2 Preview 2 – Part 2

Oct 4th, 2009 | By sankarsan | Category: Web Apps

In my last post we have discussed about the ModelMetaData and related classes along with a sample code.In this post we will discuss about ModelValidator and ModelValidatorProvider and extend the sample library. ModelValidator – This is the abstract base class and implemented by custom validators to perform the model validation.It has a constructor as shown [...]



ModelValidator in ASP.NET MVC 2 Preview 2 – Part 1

Oct 3rd, 2009 | By sankarsan | Category: Web Apps

While going through the new features of ASP.NET MVC 2 Preview 2, one feature seemed quite interesting to me.There are a set of classes, using which we can build a custom validation framework for the model.ASP.NET MVC framework by default provides a Data Annotation(classes present in System.ComponentModel.DataAnnotations namespace) based  model validation.This makes use of attributes [...]