Results 1 to 3 of 3

Thread: asp.net validation

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    asp.net validation

    I'm using the code below to format a txtbox on my web page. The code works fine, it accepts input like this: 1C232. I need to change the code so the second character could be either a number or letter...thanks.


    VB Code:
    1. ValidationExpression="\d{1}[a-z]\d{3}
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    have you tried
    Code:
    \d{1}[0-9][a-z]\d{3}
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    this worked to format.


    VB Code:
    1. ValidationExpression="\d{1}[a-zA-Z0-9]\d{3}
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width