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; }
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top