How to restricted this format

Posted by Jayakumars under C# on 5/26/2017 | Points: 10 | Views : 228 | Status : [Member] [MVP] | Replies : 1
Hi

I need enter the text box value like this

0123456089

I need here 1st digit not allow zero and total length 10 only for mobile no validation also

using only RegularExpressionValidator


Mobile no must be 10 digit nothing less than 10 then first character should not zero
how to using RegularExpressionValidator


any one guide me

Mark as Answer if its helpful to you


Responses

Posted by: Jitendrasoft09 on: 5/27/2017 [Member] [MVP] Starter | Points: 25

Up
0
Down
RegularExpression will not be suit for this requirement. Better you can use keyUp event of jquery to restrict first letter zero. Then You can use RegularExpressionValidator. Hope it helps you. Shared similar thread link below. Try it now.
www.stackoverflow.com/questions/14132404/regex-accept-numeric-only-first-character-cant-be-0

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response