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. Advertisements

  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. Advertisements

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. Mitchua
    Replies:
    5
    Views:
    3,124
    Eric J. Roode
    Jul 17, 2003
  2. Abhishek Srivastava

    Best way to check minimum length for a textbox field

    Abhishek Srivastava, Feb 10, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    24,149
    efontana
    Mar 10, 2009
  3. Matthias Straka

    Minimum buffer length for Response.Flush?

    Matthias Straka, Sep 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    720
    Matthias Straka
    Sep 9, 2004
  4. Lobang Trader

    Minimum & Maximum for username/password

    Lobang Trader, Apr 12, 2004, in forum: Java
    Replies:
    7
    Views:
    722
    Sudsy
    Apr 14, 2004
  5. Yasin Cepeci
    Replies:
    1
    Views:
    1,149
    Juan T. Llibre
    Apr 26, 2007
  6. AAaron123
    Replies:
    2
    Views:
    2,982
    AAaron123
    Jan 16, 2009
  7. AAaron123
    Replies:
    1
    Views:
    1,639
    Oriane
    Jan 16, 2009
  8. Yasin Cepeci
    Replies:
    2
    Views:
    354
    Yasin Cepeci
    Apr 26, 2007
Loading...