Fullcalendar不显示从asp.net web服务返回的事件

Fullcalendar不显示从asp.net web服务返回的事件,fullcalendar,Fullcalendar,根据本博客()中列出的基本指南,我创建了一个基于asp.net vb的web服务,它返回以下json数据……但是日历没有显示任何事件。有没有想过是什么导致了这个问题?提前谢谢 <?xml version="1.0" encoding="utf-8"?><string xmlns="http://tempuri.org/">[{"id":1,"title":"Doctor D1","start":1279854594},{"id":2,"title":"Doctor D1"

根据本博客()中列出的基本指南,我创建了一个基于asp.net vb的web服务,它返回以下json数据……但是日历没有显示任何事件。有没有想过是什么导致了这个问题?提前谢谢

<?xml version="1.0" encoding="utf-8"?><string xmlns="http://tempuri.org/">[{"id":1,"title":"Doctor D1","start":1279854594},{"id":2,"title":"Doctor D1","start":1279692000},{"id":3,"title":"Doctor D1","start":1279778400},{"id":4,"title":"Doctor D1","start":1280498809},{"id":5,"title":"Doctor D1","start":1280469600},{"id":6,"title":"Doctor D1","start":1280469600},{"id":7,"title":"Doctor D1","start":1280469600},{"id":8,"title":"Doctor D1","start":1280469600},{"id":9,"title":"Doctor D1","start":1280469600},{"id":10,"title":"Doctor D1","start":1280815200},{"id":11,"title":"Doctor D1","start":1280815200},{"id":12,"title":"Doctor D1","start":1280901600},{"id":13,"title":"Doctor D1","start":1281074400}]</string>
[{“id”:1,“头衔”:“D1医生”,“start”:1279854594},{“id”:2,“头衔”:“D1医生”,“start”:1279692000},{“id”:3,“头衔”:“D1医生”,“start”:1279778400},{“id”:4,“头衔”:“D1医生”,“start”:1280498809},{“id”:5,“头衔”:“D1医生”,“start”:1280469600},{“id”:6,“头衔”:“D1医生”,“start”:1280469600},{“D1医生”,“start”:1280469600},{“id”:7,“D1医生”,“start”:1280469600}”:8,“头衔”:“D1医生”,“开始”:1280469600},{“id”:9,“头衔”:“D1医生”,“开始”:1280469600},{“id”:10,“头衔”:“D1医生”,“开始”:1280815200},{“id”:11,“头衔”:“D1医生”,“开始”:1280815200},{“id”:12,“头衔”:“D1医生”,“开始”:1280901600},{“id”:13,“头衔”:“D1医生”,“开始”:1281074400}]

我猜您没有在第421行修改fullcalendar脚本。javascript eval函数是将json转换为fullcalendar可以使用的内容所必需的

reportEventsAndPop=函数(a){

如果(公元前){ 变量a=eval(“(“+a.d.replace”(/StartDate/g,“start”).replace(/EndDate/g,“end”)+”); }


})

您是否对fullcalendar脚本进行了更改?我将尝试一下……但是我的json流中已经有了“start”。例如:{“id”:2,“title”:“Doctor D1”,“start”:1279692000}是对象之一。(我在CalendarDTO对象中将我的属性命名为“start”。我想知道这是否是json数据在xml标记中的包装方式。(请参阅我上面的文章)。谢谢你的时间。我建议下载这个例子,看看它是如何完成的。。要让这个插件在vb.net中工作,需要做一些更改。我现在离你越来越近了,已经复制了你的代码样本,非常准确。我现在发现的唯一区别是,我的应用程序与你的示例应用程序将json发送回日历…你呢r json以一个小片段开始,如下所示:{“d”:"我的json开始时没有那个小片段。我使用的是与您的代码示例中完全相同的.js文件。web.config中是否有一些设置可能会影响json打包/序列化的方式…我不确定这是不是问题,但我的事件没有显示在日历上,这是我所能看到的唯一区别。谢谢。谢谢ght需要在web配置部分下添加一些内容。您可能需要添加或取消注释原来是我的目标.net 2.0框架。重新定位为3.5,并包含System.web.Extensions dll引用,所有这些似乎都很好。我想对于您的助手来说,json serialization.Thx的行为略有不同总工程师。
reportEvents(a);
popLoading();