Библиотека

Магистр ДонНТУ Морозов Дмитрий Сергеевич

Тема выпускной работы: Система моделирования технологической схемы производства и организации работы с документами

Научный руководитель: доцент кафедры компьютерной инженерии, кандидат технических наук Теплинский Сергей Васильевич



Extreme ASP.NET

Model Validation and Metadata in ASP.NET MVC 2


K. Scott Allen


One of the new features added to the ASP.NET MVC 2 release is the ability to validate user input on both the server and client. All you need to do is give the framework some information about the data you need validated, and the framework will take care of the hard work and details.

This feature is a tremendous boon for those of us who wrote custom validation code and custom model binders to perform simple model validation with ASP.NET MVC 1.0. In this article, I’ll look at the built-in validation support in ASP.NET MVC 2.

Before I discuss the new capabilities, however, I’m going to revisit the old methodology. The validation features in ASP.NET WebForms have served me well for many years. I think it’s useful to review them to understand what an ideal validation framework provides.


Full acticle can be found here: http://msdn.microsoft.com/en-us/magazine/ee336030.aspx