Click here to Skip to main content
15,909,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to control usertext field that it should have minimum 5 to 7 character.I have used range validator in asp.net there i have given the property min =5 and max=7 but its not working please do the need full.
Posted

1 solution

Try RegularExpressionValidator.

ValidationExpression: [.]{5,7}
 
Share this answer
 
Comments
Alok.singh1166 21-Apr-13 13:00pm    
hi Pepin z Hane i used ValidationExpression: [.]{5,7} but attribute missin error is coming
Alok.singh1166 21-Apr-13 22:27pm    
its not working pls help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900