The most common web application security flaw is the failure to properly validate input from the client or the environment. Date from the client should never be trusted as the client has every possibility to tamper with the data. You need to ensure that the data is not only validated, but the business rule is correct.
In this article, we’ll tackle model validation in MVC4 using the following approaches:
Big Data Annotations
Using ModelState object
Using Fluent Validation package
Using JQuery Validation plug-in.
First, lets create an application with a simple model, view and controller. After that we apple the different approaches to validate data.
Read the rest of the post here:Â http://www.windowshostingplans.com/wp-admin/post-new.php