protected override void OnInit(EventArgs e) { base.OnInit(e); currentUser = Usuario.Current; if (currentUser == null) Response.Redirect("~/Seguridad/Login.aspx?status=1"); }
protected void Button1_Click(object sender, EventArgs e) { Usuario u = new Usuario(); if (u.Login(txt_correo.Text, txt_pass.Text)) { Response.Redirect("../Inicio/Home.aspx"); } else { Response.Redirect("Login.aspx?status=2"); } }