Question

Because I'm not using .net 4 I can't use StringLength.MinimumLength property. What is alternative? I suppose I should write regular expression:

[Required]
[RegularExpression("", ErrorMessage = "Minimum 3 characters")]
public string Password { get; set; }

Thanks,
Ile

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