SyntaxFix
Write A Post
Hire A Developer
Questions
One another point to note down is in MaxLength attribute you can only provide max required range not a min required range. While in StringLength you can provide both.