GetClientValidationRules is never called in MVC application
问题 I have a custom ValidationAttribute that implements IClientValidatable. But the GetClientValidationRules is never called to actually output the validation rules to the client side. There is nothing special about the attribute but for some reason it is never called. I've tried registering an adapter in Application_Start() but that also doesnt work. [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] public class CustomAttribute : ValidationAttribute, IClientValidatable { public