Link to home
Start Free TrialLog in
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?
Avatar of kaufmed
kaufmed
Flag of United States of America image

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
Avatar of ASPNet_Developer
ASPNet_Developer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Avatar of ASPNet_Developer
ASPNet_Developer

ASKER

Thanks for the comments, i got it by myself.