Click here to Skip to main content
15,889,281 members
Articles / Programming Languages / C# 4.0

Model level validation using ASP.NET MVC

Rate me:
Please Sign up or sign in to vote.
4.13/5 (6 votes)
18 Feb 2010CPOL3 min read 27.4K   9  
The benefit of putting validation in the model layer is that, the validation rules will be enforced everywhere in the application that accesses the database. It also means that we can change the validation rule in one place and every UI element inside our app will automatically get updated.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions