Question

I'm using localized modelvalidation in my mvc 3 application. I did this with the Required attribute and a errormessage resource. This works on almost all browsers, except ie 7 and 8. Below you can find the sample code that I used.

Sample code:

    [Required(ErrorMessageResourceName = "Error_field_is_required", ErrorMessageResourceType = typeof(Global))]
    [StringLength(90, ErrorMessageResourceName = "Error_max_string_90", ErrorMessageResourceType = typeof(Global))]
    public string LastName { get; set; }
Était-ce utile?

La solution

The validation module has issues with some versions of jquery. I went back to the original version and it works again.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top