SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast edones's Avatar
    Join Date
    Mar 2005
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question ValidationExpression

    I need to Validate two Controls one to only allow null or 10 numbers and another control to only allow null or (one alfa and 5 digits) ex G12345 or leave blank.


    ValidationExpression="^{5,10}"
    ErrorMessage="* Most have 10 digits or no value"


    and second


    ValidationExpression="^{d,5}"
    ErrorMessage="* Most have one Alfa and 5 digits number or no value"

    I will aprecciate any help. Thanks,
    Liz Dones
    "I know nothing except the fact of my ignorance."

  2. #2
    SitePoint Enthusiast edones's Avatar
    Join Date
    Mar 2005
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    I think I have the right combination now.

    ValidationExpression="^.{1,}\d{5}$"
    ErrorMessage="* Most have one alfa and 5 digits number"



    ValidationExpression="^\d{10,}"
    ErrorMessage="* Most have 10 digits number"
    Liz Dones
    "I know nothing except the fact of my ignorance."


Bookmarks

Posting Permissions

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