private void cambiarCuenta_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ChangePas c = new ChangePas(miembro.IdMiembro); c.Show(); c.guardarEstado(this); this.Hide(); }
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; } }