Tag Archives: unobtrusive validation

Custom Unobstrusive Jquery Validation in ASP.Net MVC 3 using DataAnnotationsModelValidatorProvider

Introduction In a previous post I covered the use of Custom Unobrusive Validation in ASP.Net MVC using the IClientValidatable. The use of this interface may not always be possible, for example if the validation attribute is defined in an assembly … Continue reading

Posted in ASP.Net MVC, jQuery | Tagged | 1 Comment

Custom Unobstrusive Jquery Validation in ASP.Net MVC 3

Introduction This post demonstrates how to add client side unobtrusive validation for custom validation attributes. I will use a real example, which is the client side validation of the Australian Business Number and Australian Company Numbers for registered companies in … Continue reading

Posted in ASP.Net MVC, jQuery | Tagged , , | 3 Comments

Applying unobtrusive jquery validation to dynamic content in ASP.Net MVC

The new unobtrusive validation features of ASP.net MVC are great, but I was surprised to find that once the validators have been applied for a document, validators as a result of dynamic content will not be applied, even if you … Continue reading

Posted in ASP.Net MVC, jQuery | Tagged , , | 46 Comments

Arbitrary client side validation in ASP.Net MVC 3

With the new unobtrusive JavaScript validations libraries included in ASP.Net MVC, it has become just so easy to add validation to any client input field, whether or not the field is backed by a model that exposes data annotations. When … Continue reading

Posted in ASP.Net MVC | Tagged | Leave a comment