By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Input letters only

P: 21
Is there a validation control to require the user to input only letters?
Aug 24 '12 #1

✓ answered by PsychoCoder

If this ASP.NET then you would use the RegularExpressionValidator, then work on a regular expression pattern to allow only letters like this

Expand|Select|Wrap|Line Numbers
  1. [^a-zA-Z]
That will allow only letters. Hope this helps.

Happy Coding!

Share this Question
Share on Google+
4 Replies


PsychoCoder
Expert Mod 100+
P: 465
If this ASP.NET then you would use the RegularExpressionValidator, then work on a regular expression pattern to allow only letters like this

Expand|Select|Wrap|Line Numbers
  1. [^a-zA-Z]
That will allow only letters. Hope this helps.

Happy Coding!
Aug 25 '12 #2

P: 21
Thankyou I have used that already and it works...
^a-zA-Z+_
+_ I add that for the space,
Aug 28 '12 #3

PsychoCoder
Expert Mod 100+
P: 465
Glad I could help. Happy Coding!
Aug 28 '12 #4

P: 21
Hey I have another question... http://bytes.com/topic/visual-basic-...-work-properly
Aug 28 '12 #5

Post your reply

Sign in to post your reply or Sign up for a free account.