Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Disable CompareValidator [modified]

Disable CompareValidator [modified]

Scheduled Pinned Locked Moved Web Development
cssregexquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CandyMe
    wrote on last edited by
    #1

    I have Password and Re-type Password fields. If the user inputs a password that is less than 6 characters, the user is prompted with a RegExValidator "Minimum of 6 characters." And if the user inputs a password in Re-Type password that DOESN'T MATCH WITH INVALID PASSWORD, the user is prompted with a CompareValidator "Passwords don't match." Can I disable the "Passwords don't match" comparevalidator and only prompt it if the user has already ENTERED A VALID PASSWORD in Password field? Thank you. -- modified at 9:45 Thursday 25th October, 2007

    Gerri

    P 1 Reply Last reply
    0
    • C CandyMe

      I have Password and Re-type Password fields. If the user inputs a password that is less than 6 characters, the user is prompted with a RegExValidator "Minimum of 6 characters." And if the user inputs a password in Re-Type password that DOESN'T MATCH WITH INVALID PASSWORD, the user is prompted with a CompareValidator "Passwords don't match." Can I disable the "Passwords don't match" comparevalidator and only prompt it if the user has already ENTERED A VALID PASSWORD in Password field? Thank you. -- modified at 9:45 Thursday 25th October, 2007

      Gerri

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      I'm not sure what is wrong with your current setup. If the user inputs different values in the 2 password input boxes, surely it is correct to notify them that the passwords don't match? This logic still applies if the user enters an invalid password in the first box and a valid password in the second box. The passwords don't match, so it is OK to flag this up.

      Paul Marfleet

      C 1 Reply Last reply
      0
      • P pmarfleet

        I'm not sure what is wrong with your current setup. If the user inputs different values in the 2 password input boxes, surely it is correct to notify them that the passwords don't match? This logic still applies if the user enters an invalid password in the first box and a valid password in the second box. The passwords don't match, so it is OK to flag this up.

        Paul Marfleet

        C Offline
        C Offline
        CandyMe
        wrote on last edited by
        #3

        Thank you.

        Gerri

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups