Ejemplo n.º 1
0
 public UsuarioSistema Acceso(String _usr, String _pwd)
 {
     try
     {
         return(UsuarioSistemaDAO.getInstance().AccesoSistema(_usr, _pwd));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        protected void btnIngresar_Click(object sender, EventArgs e)
        {
            // string user = txtUsuario.Text;
            // string password = txtPassword.Text;
            // string userName = "******";
            // string passName = "4ug02000";
            //if (user.Equals(userName) && password.Equals(passName))

            UsuarioSistema _Usuario = UsuarioSistemaDAO.getInstance().AccesoSistema(txtUsuario.Text, txtPassword.Text);

            if (_Usuario != null)
            {
                Response.Redirect("PanelGeneral.aspx");
            }
            else
            {
                Response.Write("<script> alert ('Usuario Incorrecto'); </script>");
            }
        }