How to save 0000 to database in asp.net
hi friends i have to store text box value like 4 digits with check availability . i done some values like stared with 1..like 1000,1154,1001,etc but i can not store the values started with 0's like 0000,0120,0010,0001,etc...please help me..how to store these type's of values..i am eaiting for your reply...thank you please help me............
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Vipan SharmaRank #1,589 · 999 reputationPosted Dec 30, 2015, 8:21 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 30, 2015, 7:11 PM EST
eswar rao87 reputationPosted Dec 30, 2015, 7:33 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 30, 2015, 10:06 PM EST
Try this :
^[1-9]/d*$
Reference :
http://stackoverflow.com/questions/14132404/regex-accept-numeric-only-first-character-cant-be-0