var _puntoDeMedicionId = $('#<%= DropDownPtoMedicionGraf.ClientID %>').val(); var _EntradasSalidas = _ids; var _FechaHoraIni = $('#<%= TextBoxFechaIniGraf.ClientID %>').val(); //Fecha inicial de seleccion var _FechaHoraFin = $('#<%= TextBoxFechaFinGraf.ClientID %>').val(); //Fecha final de seleccion $.ajax({ url: "Graficos.aspx/GetChartData", data: "{'pPuntoDeMedicionId':'" + _puntoDeMedicionId + "'," + " 'pEntradasSalidas' : '" + _EntradasSalidas + "'," + " 'pFechaHoraIni' : '" + _FechaHoraIni + "'," + " 'pFechaHoraFin' : '" + _FechaHoraFin + "'" + "}", dataType: "json", type: "POST", contentType: "application/json; chartset=utf-8", success: function (data) { var _primero = true; $(data.d).each(function (_index, _objeto) { if (_primero == true) _primero = false; else _objeto[0] = moment(_objeto[0]).toDate(); }); chartData = data.d; }, failure: function (r) { alert(data.d); }, error: function (data) { // alert(data.d); alert("Error cargando los datos, demasiados datos a representar o conexion muy lenta"); } }).done(function () { // after complete loading data google.setOnLoadCallback(drawChart); drawChart(); });
<system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="5000000"/> </webServices> </scripting> </system.web.extensions>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)