473,385 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Input letters only

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!

4 2293
PsychoCoder
465 Expert Mod 256MB
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
Thankyou I have used that already and it works...
^a-zA-Z+_
+_ I add that for the space,
Aug 28 '12 #3
PsychoCoder
465 Expert Mod 256MB
Glad I could help. Happy Coding!
Aug 28 '12 #4
Hey I have another question... http://bytes.com/topic/visual-basic-...-work-properly
Aug 28 '12 #5

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

Similar topics

1
by: Pif Paf | last post by:
I have a process, and my process wants to wait for input but only for a certain amount of time. The input might be coming from a Python file object (created with popen) or a TCP socket. What I...
6
by: D. Alvarado | last post by:
How do I make an input type="text" field read only for pages meant for display on IE 5+ and Netscape 6+? Thanks - Dave
2
by: missimaths | last post by:
I was wondering if anyone knew of a way to control the text a user types into an inputbox? I want the user to type in four letters only. I can check the lenght by using the len() function in vba...
4
by: macuser55 | last post by:
Hello all, I would like to do a simple input scan from the command line, but only if the user has typed something... I have had a look at the select() method, but am still having trouble. ...
2
by: charleswesley | last post by:
I find myself regularly needing to validate user input as either a) numeric only or b) valid email address format (user@domain.tld) I am assuming that there are regular expressions that can be...
5
by: PJ | last post by:
I've been using this function to limit a text input to numbers only with success on an old site. function checkForInt(evt) { var charCode = ( evt.which ) ? evt.which : event.keyCode; return (...
3
by: sasimca007 | last post by:
Hello friends, We have seen many textboxes, it is used as date,readonly,text etc... If we want to restrict the textbox with not to enter letters only numbers and one more...
10
by: harz | last post by:
Hi, I just want to know if is there any way in C to get only 1 input from user? Like, Enter a letter: a After inputting a, should be that I can't anymore type with other letters, only 1....
1
by: bambs | last post by:
how to restrict fields to numbers/ letters only? without enabling the user to passed the page until he/she writes the correct input?
0
by: brixton | last post by:
Hi, I've stumpled upon a very weird issue. The situation is that I'm styling my own file input field, by replacing it with a text field and a button, lying below the original file input, which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.