コード例 #1
0
        private void cambiarCuenta_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ChangePas c = new ChangePas(miembro.IdMiembro);

            c.Show();
            c.guardarEstado(this);
            this.Hide();
        }
コード例 #2
0
    protected void btnotp_Click(object sender, EventArgs e)
    {
        ChangePassEn.OldPassword = oldpas.Value.Trim();
        ChangePassEn.Password    = newpas.Value.Trim();
        ChangePassEn             = SL.UpdatePassword(ChangePassEn);
        if (ChangePassEn.Description == "Success")
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alertMessage", "alert('Your Password has been Changed Successfully.Please login with new password');window.location='Loginpage1.aspx';", true);
            return;
        }

        else
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alertMessage", "alert('Please Enter Correct OTP');", true);
            return;
        }
    }