title: How to set Minimum Length for Password in Asp:Login Control
body: <p>I'm trying to implement minimum length for password.
  Till now I wrote my code on onauthenticate method.</p>
  
  <pre><code>protected void UserLogin_Authenticate(object sender, AuthenticateEventArgs e)
      {
          string userName = UserLogin.UserName;
          string password = UserLogin.Password;
          if (password.Length &lt; 12)
          {
              //alertbox
          }
      }
  </code></pre>
  
  <p>But it given me error saying "'ASP.login_aspx' does not contain a definition for 'UserLogin_Authenticate1' " </p>
  
  <p>Can anyone here please help?And can I achieve this using RegularExpressionValidator? Or Javascript??</p>