Hi
I have given below Data Annotation but it does not display message at Client Side even if no of characters entered is more than 4
[Required(ErrorMessage = "Id cannot be Blank. Max length should be less than or equal to 4."), MaxLength(4)]
Secondly if only alphabets are entered then also it gives error message - Special characters are not allowed.
Thanks

Sachin SinghPosted Jun 21, 2021, 8:31 AM
Ramco RamcoPosted Jun 21, 2021, 8:28 AM
Sachin SinghPosted Jun 21, 2021, 8:25 AM
Ramco RamcoPosted Jun 21, 2021, 8:14 AM
Sachin SinghPosted Jun 21, 2021, 7:28 AM
Ramco RamcoPosted Jun 21, 2021, 6:41 AM
Farhan AhmedPosted Jun 21, 2021, 5:59 AM