Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to restrict User to enter Phone number in word

Author  Topic 

abhishek_kumar_rch
Starting Member

6 Posts

Posted - 2014-12-05 : 10:50:24
Hi I am designing wepage using Asp.net with Sql server as database
I have used Multiline textbox in which user has to enter their family detail.
Like number of brother and sister family status, source of Earning for family.
But User do not have to enter his/her phone/contact number.
For that I restricted the user to enter any nuberic digit through asp.net
Regex. But User is too smart now they are entering his/her contact number in words
Suppose somebody's Contact number is 533445928 as they can not enter numberic digit
because of asp.net regex which allows the user to enter only alphabets. Now they are entering their contact number in words like five three three four four nine two eight seven. I would like to restrict the user to enter contact detail in words also.

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2014-12-05 : 12:08:31
You say that you restricted the user to only enter digits for their number. So how are they able to enter non-digits without asp.net complaining?
Go to Top of Page
   

- Advertisement -