ASP.NET MVC 4 - Clientside Validation Not Working
问题 I am using Visual Studio 2012 and I cannot get a custom attribute client side logic to work to reproduce at a smaller scale, I created a new MVC 4 project I created the following model and Attribute that will never validate public class MyModel { public int Id { get; set; } [Required] public string LastName { get; set; } [NeverValid(ErrorMessage="Serverside Will Never Validate")] public string FirstName { get; set; } } public class NeverValidAttribute : ValidationAttribute, IClientValidatable