c# - Regular Expression Validator for number with a length of 5 or 6 only -


i have textbox facultyid should accept 5 or 6 digit number.

i want use regular expression validator validate user input. validation expression should put in? please help.

i'm using asp.net , c#

use validation expression on validator:

validationexpression="\d{5,6}" 

Comments

Popular posts from this blog

winapi - How to get a user input on a MessageBox on C++? -

parcelable - Unmarshalling unknown type code exception while reading parcel values in Android 4.4+ -