Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Numbers or letters in a TextBox

Reply
Thread Tools

Numbers or letters in a TextBox

 
 
PABLIN
Guest
Posts: n/a
 
      08-26-2003
How I can have a TextBox that to only lets me enter
letters or numbers?
 
Reply With Quote
 
 
 
 
Dune
Guest
Posts: n/a
 
      08-28-2003
stick a regular expression validator in to validate the
contents of the textbox and then set the
validationexpression property of the validator control to
allow only letters or numbers.

check out this link for info on regular expressions:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpgenref/html/cpconregularexpressionslanguageelements.as
p

>-----Original Message-----
>How I can have a TextBox that to only lets me enter
>letters or numbers?
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
making all letters Caps/Small Letters Merrigan Python 4 12-14-2007 10:10 AM
Convert from numbers to letters rh0dium Python 30 05-20-2005 05:50 PM
Changing from capital letters to small letters using perl Venugopal Perl Misc 11 11-05-2003 06:07 PM
Numbers or letters in a TextBox PABLIN ASP .Net Web Controls 1 08-26-2003 05:52 PM
Numbers or letters in a TextBox Pablo ASP .Net 2 08-26-2003 04:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57