Avatar of ASPNet_Developer
ASPNet_Developer
 asked on

How read input for digits in asp.net?

I have text box for input. The user may enter number and symbols, but I need to read the input and get only digits and alpha from the input text box. How do I do it in asp.net?
ASP.NETVisual Basic.NETMicrosoft Development

Avatar of undefined
Last Comment
ASPNet_Developer

8/22/2022 - Mon
kaufmed

I have text box for input. The user may enter number and symbols, but I need to read the input and get only digits and alpha from the input text box. How do I do it in asp.net?
Can you clarify what you are trying to do? The title of the question says you want digits; then you say you want numbers AND symbols; then you say you want digits AND alpha. What are you trying to do?
ASKER CERTIFIED SOLUTION
ASPNet_Developer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
kaufmed

OK. So are you trying to prevent the user from entering non-permitted characters (i.e. they can ONLY enter digits and/or alphabetic characters), or are you trying to just grab the numbers and/or alphabetic characters from the user's entry, no matter what they type?
ASPNet_Developer

ASKER
Thanks for the comments, i got it by myself.
Your help has saved me hundreds of hours of internet surfing.
fblack61