required field validator - prevent number and allow space

Discussion in 'ASP .Net' started by Andy Eshtry, Feb 1, 2004.

  1. Andy Eshtry

    Andy Eshtry Guest

    I have used required field validator with the expression: ^[A-Za-z]{1,}$
    I want to prevent user to enter digit. It works well but there is one
    problem.
    If I enter blank (space) between characters like this: "andy eshtry", , it
    does not work.
    Please help. Thanks in advance.
    Andy
     
    Andy Eshtry, Feb 1, 2004
    #1
    1. Advertising

  2. Andy Eshtry

    CMA Guest

    use this and see

    [ ]*[a-z, ,A-Z]*[ ]*

    hope this helps..
    CMA



    "Andy Eshtry" <> wrote in message
    news:...
    >
    >
    > I have used required field validator with the expression: ^[A-Za-z]{1,}$
    > I want to prevent user to enter digit. It works well but there is one
    > problem.
    > If I enter blank (space) between characters like this: "andy eshtry", , it
    > does not work.
    > Please help. Thanks in advance.
    > Andy
    >
    >
     
    CMA, Feb 2, 2004
    #2
    1. Advertising

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. Shuo Xiang

    Stack space, global space, heap space

    Shuo Xiang, Jul 9, 2003, in forum: C Programming
    Replies:
    10
    Views:
    2,936
    Bryan Bullard
    Jul 11, 2003
  2. Christian Seberino
    Replies:
    21
    Views:
    1,718
    Stephen Horne
    Oct 27, 2003
  3. Andy Eshtry

    required field validator - prevent number and allow space

    Andy Eshtry, Feb 1, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    173
  4. Sound
    Replies:
    2
    Views:
    465
    Randy Webb
    Sep 28, 2006
  5. jr
    Replies:
    3
    Views:
    449
Loading...

Share This Page