protected void Page_Load(object sender, EventArgs e) { if (Session["Usuario_id"] == null) { Response.Redirect("Login.aspx"); } else { Response.Write("<div class='msg-welcome'><div class='navbar-brand text-welcome'> <i class='fas fa-user-circle'></i> " + Session["Nombre"] + "</div><p>"); Response.Write(DateTime.Now.ToString() + "</p></div>"); // Inicializo el objeto global O_Business objBusiness = new O_Business(); // Obtengo el parámetro de la URL. int idGrupo = Int32.Parse(Page.ClientQueryString); this.sanciones = objBusiness.Get_Cantidad_Sanciones_Usuarios_Grupo(idGrupo); this.grupo = objBusiness.Get_Grupo(idGrupo); } }