protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["id"] != null) { int IDSeccion = 0; int.TryParse(Request.QueryString["id"].ToString(), out IDSeccion); EstadisticosAfiliados_Negocio EstNeg = new EstadisticosAfiliados_Negocio(); object [] resulta = EstNeg.ObtenerPuntosStringXIDSeccion(Comun.Conexion, IDSeccion); //json = Iniciar(json); //json = json.Substring(1, json.Length - 1); var json = JsonConvert.SerializeObject(resulta); Response.Clear(); Response.ContentType = "application/text;"; Response.Write(json); Response.End(); } else { Response.Clear(); Response.ContentType = "application/text;"; Response.Write(string.Empty); Response.End(); } }