Pages

About Me

My photo
ForEach(Minute in MyLife) MyExperience ++;

Friday, June 17, 2011

Lenght restriction using validator

Here is the ValidationExpression to set the MaxLength (and also MinLength) of the input string: [^$]{MinLength,MaxLength}

Replace MinLength and MaxLength with numeric values. For example, a 100 character MaxLength with no Minimum length: [^$]{0,100}

No comments:

Post a Comment