Numbers or letters in a TextBox

Discussion in 'ASP .Net Building Controls' started by PABLIN, Aug 26, 2003.

  1. PABLIN

    PABLIN Guest

    How I can have a TextBox that to only lets me enter
    letters or numbers?
     
    PABLIN, Aug 26, 2003
    #1
    1. Advertisements

  2. PABLIN

    Dune Guest

    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?
    >.
    >
     
    Dune, Aug 28, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pablo

    Numbers or letters in a TextBox

    Pablo, Aug 26, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    526
    Jerry III
    Aug 26, 2003
  2. rh0dium

    Convert from numbers to letters

    rh0dium, May 19, 2005, in forum: Python
    Replies:
    30
    Views:
    25,991
    Bill Mill
    May 20, 2005
  3. Merrigan
    Replies:
    4
    Views:
    748
    Chris
    Dec 14, 2007
  4. PABLIN

    Numbers or letters in a TextBox

    PABLIN, Aug 26, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    233
    Alvin Bruney
    Aug 26, 2003
  5. shawn bright
    Replies:
    6
    Views:
    230
    shawn bright
    Feb 5, 2009
  6. shawn bright
    Replies:
    6
    Views:
    289
    Robert Klemme
    May 14, 2009
  7. Matt Victorio
    Replies:
    2
    Views:
    195
    Brian Candler
    Feb 24, 2011
  8. Venugopal
    Replies:
    11
    Views:
    2,365
    Tassilo v. Parseval
    Nov 5, 2003
Loading...