Lowercase validation rules?

Dec 12, 2010 at 11:41 PM

I received the following after putting the RequiredIf attribute in my model.

Validation type names in unobtrusive client validation rules must consist of only lowercase letters. Invalid name: "RequiredIf", client rule type: System.Web.Mvc.ModelClientValidationRule

I enabled client validation and unobtrusive validation. It seems like it only accepts lower case as client validation rules type. Anyone have similar issue? I am trying to rebuild the source code to lower case to see if it really works. BTW, I am using MVC3 RC.

Dec 13, 2010 at 12:04 AM

I change all the client-side attributes to lower case, including:

dependentproperty, dependentvalue, requiredif, is, operator, ...

and now it's ok. I am not sure if this is a MVC3 specific issue, but I suggest this to include in next official build.