示例#1
0
 protected void TextBox2_TextChanged(object sender, EventArgs e)//Check if password is valid.
 {
     if (ValidatePassword(PwdTxt.Text))
     {
         this.PwdTxt.Attributes.Add("value", PwdTxt.Text);
         PwdTxt.BorderColor = System.Drawing.Color.Black;
     }
     else
     {
         PwdTxt.BorderColor = System.Drawing.Color.Red;
         PwdTxt.Focus();
     }
 }