protected void btnPassSave_Click(object sender, EventArgs e)
        {
            int status = 0;

            lblPassPolicyFail.Visible    = false;
            lblPasswordNoConfirm.Visible = false;
            lblPassFailUpdate.Visible    = false;
            lblPassFailError.Visible     = false;
            lblPassFail10.Visible        = false;
            divErrorMsg.Visible          = false;

            // validate the password criteria
            if (tbNewPassword.Text != tbConfirmPassword.Text)
            {
                status = -1;
            }
            else
            {
                status = SQMModelMgr.ChangeUserPassword(SessionManager.UserContext.Credentials.SSO_ID, "", tbCurrentPassword.Text.ToString().Trim(), tbNewPassword.Text.ToString().Trim());
            }

            if (status == 0)
            {
                // send a confirmation email
                string strEmailCompanyName = SQMSettings.SelectSettingByCode(new PSsqmEntities(), "MAIL", "TASK", "MailFromSystem").VALUE; // WebConfigurationManager.AppSettings["MailFromSystem"];
                string strEmailBody        = lblPasswordEmailBody1a.Text.ToString() + strEmailCompanyName + lblPasswordEmailBody1b.Text.ToString() + "<br><br>" + lblPasswordEmailBody2.Text.ToString();
                // ABW 20140117 - we are now usig the email on the Person record
                //string strEmailSent = WebSiteCommon.SendEmail(SessionManager.UserContext.Credentials.RECOVERY_EMAIL, lblPasswordEmailSubject.Text.ToString(), strEmailBody.Trim(), "");
                string strEmailSent = WebSiteCommon.SendEmail(SessionManager.UserContext.Person.EMAIL, strEmailCompanyName + lblPasswordEmailSubject.Text.ToString(), strEmailBody.Trim(), "");

                if (strCurrentControl.Equals("login"))
                {
                    ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "AlertPostback('" + hfPasswordChangedSucces.Value + "','loginContinue');", true);
                }
                else
                {
                    hideControl();
                }

                ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alertResult('hfAlertSaveSuccess');", true);
            }
            else
            {
                divErrorMsg.Visible = true;
                switch (status)
                {
                case -1:
                    lblPasswordNoConfirm.Visible = true;
                    break;

                case 10:
                    lblPassFail10.Visible = true;
                    break;

                case 100:
                    lblPassPolicyFail.Visible = true;
                    break;

                case 110:
                    lblPassPolicyFail.Visible = true;
                    break;

                case 120:
                    lblPassPolicyFail.Visible = true;
                    break;

                case 130:
                    lblPassPolicyFail.Visible = true;
                    break;

                case 140:
                    lblPassPolicyFail.Visible = true;
                    break;

                default:
                    lblPassFailUpdate.Visible = true;
                    lblPassFailError.Visible  = true;
                    lblPassFailError.Text     = status.ToString();
                    break;
                }
                BindPwdEdit(true);
            }
            // hide the control?
        }