protected void btnAccesar_Click(object sender, EventArgs e) { BLLPessoa bll = new BLLPessoa(); DataTable dt = new DataTable(); dt = bll.Logueo(txtEmail.Text, txtSenha.Text); if (dt.Rows.Count > 0) { Response.Redirect("IntranetPrincipal.aspx"); } else { Response.Redirect("Login.aspx"); } }