protected void uvButton_Click(object sender, EventArgs e)
        {
            SRPUser user  = new SRPUser((int)((SRPUser)Session[SessionData.UserProfile.ToString()]).Uid);
            var     valid = SRPUser.VerifyPassword(user.Username, uxCPass.Text);

            if (!valid)
            {
                MasterPage.PageError = String.Format(SRPResources.ApplicationError1, "Your current password is invalid.");
                return;
            }
            user.LastPasswordReset = DateTime.Now;
            user.MustResetPassword = false;
            user.NewPassword       = uxPassword.Text;
            try {
                user.ClearErrorCodes();
                if (user.Update())
                {
                    Session[SessionData.UserProfile.ToString()] = user;
                    MasterPage.PageMessage = String.Format("Password has been changed.");
                }
                else
                {
                    string message = String.Format(SRPResources.ApplicationError1, "<ul>");
                    foreach (BusinessRulesValidationMessage m in user.ErrorCodes)
                    {
                        message = string.Format(String.Format("{0}<li>{{0}}</li>", message), m.ErrorMessage);
                    }
                    message = string.Format("{0}</ul>", message);
                    MasterPage.PageError = message;
                }
            } catch (Exception ex) {
                MasterPage.PageError = String.Format(SRPResources.ApplicationError1, ex.Message);
            }
        }