protected void BtnIngresar_Click(object sender, EventArgs e) { try { TBL_USUARIO _infoUsuario = new TBL_USUARIO(); Encriptacion encriptar = new Encriptacion(); _infoUsuario = LogicaNegocio.LogicaLogin.Login.getUserLogin(txtEmail.Text, encriptar.sha1encriptacion(txtPassword.Text)); if (_infoUsuario != null) { Response.Write("<script>alert('Ingreso Correcto');location='WfmAdministrador.aspx'</script>"); } else { Response.Write("<script>alert('Usuario o contrasena erronea');</script>"); } } catch (Exception ex) { Response.Write("<script>alert('" + ex.Message.ToString() + "');</script>"); } }
protected void Btningreso_Click(object sender, EventArgs e) { try { TBL_USUARIO _infoUsuario = new TBL_USUARIO(); Encriptacion encriptar = new Encriptacion(); _infoUsuario = LogicaNego.logicaLogin.Login.getUserLogin(TxtEmail.Text, encriptar.sha1encriptacion(Txtpassword.Text)); if (_infoUsuario != null) { Response.Write("<script>alert('Acceso Correcto');location='Admin.aspx'</script>"); } else { Response.Write("<script>alert('usuario correcto');</script>"); } } catch (Exception ex) { Response.Write("<script>alert('" + ex.Message.ToString() + "');</script>"); } }