Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Comments
Maciej Los 5-Dec-14 13:39pm    
Wow! Do you really want to force users to enter phone number in words? Bad idea!

1 solution

you can ask specific question and then you can validate the input. for example if you need to know the details of brothers and sisters then ask "do you have brothers or sisters?" answer will be yes or no. based on that you can ask next question. how many sisters? how many brothers etc.. these questions are just for example, you may need to come up with good set of question and validations for the answers. otherwise when you find way to limit one way users will find hundred other ways.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900