سؤال

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; }
هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top