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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -