In my project, I use unobtrusive validation with adding attributes to the properties of the model class. There is a class:
public class Person { //some properties [RegularExpression("[a-zA-ZА-Яа-я]*")] public int LAST_NAME {get; set;} } Those. I assume that when validating on the client side, only Russian and English characters (uppercase and lowercase) will be allowed. If you enter the surname on the English layout, then everything works, but the validation of Russian letters does not work. At the same time, ValidationMessageFor-helper returns the following message:
"The field LAST_NAME must match the regular expression '[à-ÿÀ-ß]*'." As far as I understand, the problem lies in the culture. If someone faced a similar problem, prompt the decision. Thank.