Reputation: 12294
how can i validate a password with asp.net mvc dataanotation, the password must be between 6 and 16 characters
Upvotes: 0
Views: 190
Reputation: 549
Look up the StringLengthAttribute in data annotations.
http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.stringlengthattribute(v=VS.95).aspx
Upvotes: 1