minimum password length

Discussion in 'ASP .Net' started by Jon Paal, Jan 31, 2007.

  1. Jon   Paal

    Jon Paal Guest

    how to set correct properties for minimum length of 6 characters ? The following doesn't work.

    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
    PasswordRegularExpression='@\"(?=.{7,)(?=(.*\d){1,)(?=(.*\W){1,)'
    PasswordRegularExpressionErrorMessage="Minimum password length is 6 characters"
    InvalidPasswordErrorMessage="Password length minimum: {6}. <br />Non-alphanumeric characters required: {0}."
     
    Jon Paal, Jan 31, 2007
    #1
    1. Advertising

  2. Jon   Paal

    Tim Mackey Guest

    hi jon,
    the regular expression contains syntax errors. the curly brackets are
    opened but not closed (they are closed by normal brackets, but this doesn't
    count).

    hope this helps
    itm


    "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
    news:...
    > how to set correct properties for minimum length of 6 characters ? The
    > following doesn't work.
    >
    > <asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
    > PasswordRegularExpression='@\"(?=.{7,)(?=(.*\d){1,)(?=(.*\W){1,)'
    > PasswordRegularExpressionErrorMessage="Minimum password length is 6
    > characters"
    > InvalidPasswordErrorMessage="Password length minimum: {6}. <br
    > />Non-alphanumeric characters required: {0}."
    >
     
    Tim Mackey, Jan 31, 2007
    #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. Abhishek Srivastava

    Best way to check minimum length for a textbox field

    Abhishek Srivastava, Feb 10, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    23,446
    efontana
    Mar 10, 2009
  2. Yasin Cepeci
    Replies:
    1
    Views:
    929
    Juan T. Llibre
    Apr 26, 2007
  3. AAaron123
    Replies:
    2
    Views:
    2,194
    AAaron123
    Jan 16, 2009
  4. AAaron123
    Replies:
    1
    Views:
    1,350
    Oriane
    Jan 16, 2009
  5. Yasin Cepeci
    Replies:
    2
    Views:
    243
    Yasin Cepeci
    Apr 26, 2007
Loading...

Share This Page