【发布时间】:2016-06-25 11:13:05
【问题描述】:
我正在为 ASP.NET MVC 使用 Kendo UI 图表,并为其提供数据传输对象列表以通过 Ajax 请求填充数据。然而,问题在于列表的大小。我在这个列表中有大约 3900 个 dto(因为它是从一个文件中解析出来的),每个 dto 中有 9 个对象:
public DateTime Time { get; set; }
public int BeatsPerMinute { get; set; }
public double Speed { get; set; }
public int Cadence { get; set; }
public double? Altitude { get; set; }
public int Power { get; set; }
public int? PowerBalance { get; set; }
public double Distance { get; set; }
我需要每个 dto 中的所有项目,但是当我发送 Ajax 请求时,我的浏览器超时。我已将我的 web.config jsonSerialization maxJsonLength 设置为 50000000,但这并没有奏效。
对此有什么推荐的方法?
【问题讨论】:
标签: c# asp.net json ajax kendo-ui