private void cargarGraficos()
        {
            DataTable datosGolesPorEquipo = gestorEstadistica.cantidadGolesPorEquipo(true);

            if (datosGolesPorEquipo.Rows.Count > 0)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "golesDeEquipo", "var golesDeEquipo = " + gestorEstadistica.generarDatosParaGraficoDeTorta(datosGolesPorEquipo) + ";", true);
            }
            else
            {
                noGraphicsEquipos.Visible = true;
                pnlGraficoEquipos.Visible = false;
                ScriptManager.RegisterStartupScript(this, this.GetType(), "golesDeEquipo", "var golesDeEquipo = null;", true);
            }

            DataTable datosTiposGol = gestorEstadistica.cantidadGolesPorTipoGol(true);

            if (datosTiposGol != null)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "tiposDeGol", "var tiposDeGol = " + gestorEstadistica.generarDatosParaGraficoDeTorta(datosTiposGol) + ";", true);
            }
            else
            {
                noGraphicsTipos.Visible = true;
                pnlGraficoTipos.Visible = false;
                ScriptManager.RegisterStartupScript(this, this.GetType(), "tiposDeGol", "var tiposDeGol = null;", true);
            }
            ScriptManager.RegisterStartupScript(this, this.GetType(), "datosFases", "var datosFases = " + gestorEstadistica.generarJsonParaGraficoBarraGoleadores() + ";", true);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!Page.IsPostBack)
                {
                    Torneo  torneo  = GestorUrl.validarTorneo();
                    Edicion edicion = GestorUrl.validarEdicion(torneo.nick);

                    gestorTorneo        = new GestorTorneo();
                    gestorTorneo.torneo = torneo;
                    nickTorneo          = torneo.nick;

                    gestorEdicion               = new GestorEdicion();
                    gestorEdicion.edicion       = edicion;
                    idEdicion                   = edicion.idEdicion;
                    gestorEdicion.edicion.fases = gestorEdicion.obtenerFases();

                    gestorEstadistica         = new GestorEstadisticas(edicion);
                    gestorEstadistica.edicion = edicion;

                    gestorJugador = new GestorJugador();
                    GestorControles.cargarRepeaterTable(rptGoleadores, gestorEstadistica.obtenerTablaGoleadores());
                    cargarGoleadoresFases();
                    sinGoleadoresTodas.Visible = !GestorControles.cargarRepeaterTable(rptGoleadoresTodasLasFases, gestorEstadistica.obtenerTablaGoleadores());
                    sinEquipos.Visible         = !GestorControles.cargarRepeaterTable(rptEquiposQueConvirtieron, gestorEstadistica.cantidadGolesPorEquipo(false));
                    sinTiposDeGoles.Visible    = !GestorControles.cargarRepeaterTable(rptGolesPorTipoGol, gestorEstadistica.cantidadGolesPorTipoGol(false));
                    cargarGraficos();
                }
            }
            catch (Exception ex) { GestorError.mostrarPanelFracaso(ex.Message); }
        }