예제 #1
0
        protected void btnIniciar_Click(object sender, EventArgs e)
        {
            Usuario log = new Usuario();

            log.User  = txtusuario.Text;
            log.clave = txtclave.Text;

            bool login = objGestion.Login(log);

            if (login)
            {
                Response.Redirect("Index.aspx");
            }
            else
            {
                lbpruebalogin.Text = objGestion.error;
            }
        }