srkirkland/DataAnnotationsExtensions — Issue #32: Client validation not working in VB
Author: tmatous
Created: 2012-02-13 12:10:41+00:00
State: open

The client validation doesn't work in VB, though the server side does work. When checking in, I noticed:

App_Start\RegisterClientValidationExtensions.cs

which of course won't work in VB. I added these lines to my Application_Start function:

DataAnnotationsModelValidatorProvider.RegisterAdapter(GetType(DataAnnotationsExtensions.EmailAttribute), GetType(DataAnnotationsExtensions.ClientValidation.Adapters.EmailAttributeAdapter))
DataAnnotationsModelValidatorProvider.RegisterAdapter(GetType(DataAnnotationsExtensions.UrlAttribute), GetType(DataAnnotationsExtensions.ClientValidation.Adapters.UrlAttributeAdapter))
DataAnnotationsModelValidatorProvider.RegisterAdapter(GetType(DataAnnotationsExtensions.DateAttribute), GetType(DataAnnotationsExtensions.ClientValidation.Adapters.DateAttributeAdapter))

and those 3 validations started working on the client side. So it looks like that's the problem, maybe a NuGet packaging issue.