Exemplo n.º 1
0
    protected void btnactivar_Click(object sender, System.Web.UI.ImageClickEventArgs e)
    {
        UsuarioBC usuario = new UsuarioBC();

        usuario = (UsuarioBC)Session["Usuario"];
        string ps = funcion.Encriptar(this.tbnueva.Text, this.txtUsername.Text);

        usuario.PASSWORD = ps;
        if (tbnueva.Text == tbnuevar.Text)
        {
            if (usuario.ModificarPass(usuario))
            {
                Session["USUARIO"] = usuario;
                Response.Redirect("~/App/Inicio.aspx");
            }
        }
        else
        {
            //   utils.ShowPopUpMsg("Las contraseñas no coinciden, ingreselas correctamente!!", this.Page);
            this.ModalPopupExtender1.Show();
        }
    }