It makes no difference what kind of development you are working on, user input validation is always an important and often troublesome issue.
What data needs to be validated? What are the valid conditions? Do we need to report every error in one pass or allow the user to correct one error at a time? Do we validate on the client [...]
The common practice in Silverlight, when using MVVM, is to validate user data via the bound property setter in the View Model. Although this works well for most circumstances, it doesn’t work when the user doesn’t make a change to data and instead clicks on a button. For example, imagine a form that prompts the user for his/her [...]
With ASP.NET, we were introduced to validators. In the most simplistic explanation, validators are used to verify that the information in a given control matches the values you are expecting.
All ASP.NET validators are derived from the abstract BaseValidator class, which provides a single abstract method [...]
This article will demonstrate how to create custom validation attribute in MVC 3 application. There are lots of validation attributes available in MVC 3 but sometimes we may require specific type of validation which is dependent on some other properties as well. In this article, I will explain how you can create your own custom validation [...]
ASP.NET supplies a few validator controls to ensure that user input data will match application needs. Most of them check if control data is not empty or entered data matches specific data type etc. In real world ASP.NET applications, we very often need to check inserted value against database. [...]