コード例 #1
0
        protected void btnCambiarPass_Click(object sender, EventArgs e)
        {
            if (!connUsuario.VerificarMaiExistente(mail))
            {
                lblMailInexistente.Visible = true;
            }
            else
            {
                lblMailInexistente.Visible = false;

                if (connUsuario.ReestablecerPassword(mail))
                {
                    btnLoginVolver.Visible = true;
                }
            }
        }
コード例 #2
0
        protected void btn_enviar_Click(object sender, EventArgs e)
        {
            lblMensaje.Visible = false;
            if (!connUsuario.VerificarMaiExistente(lost_email.Text))
            {
                lblMailIncorrecto.Visible = true;

                ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", " openModal();", true);
                ScriptManager.RegisterStartupScript(this, this.GetType(), "mail", "darClick();", true);
            }
            else
            {
                lblPassIncorrecta.Visible = false;

                connUsuario.EnviarCorreo(lost_email.Text);
                lblMensaje.Visible = true;
                //return true;
            }
        }