【发布时间】:2012-01-26 12:12:59
【问题描述】:
如何使用 asp.net、c# 创建如下所示的数组列表。我可以使用 JsonTextWriter 创建这样的数组,但不想在我的解决方案中添加任何其他 dll。
[{ "id": "slide-img-1", "client": "nature beauty", "desc": "nature beauty photography" },
{ "id": "slide-img-2", "client": "nature beauty", "desc": "add your description here" },
{ "id": "slide-img-3", "client": "nature beauty", "desc": "add your description here" },
{ "id": "slide-img-4", "client": "nature beauty", "desc": "add your description here" },
{ "id": "slide-img-5", "client": "nature beauty", "desc": "add your description here" },
{ "id": "slide-img-6", "client": "nature beauty", "desc": "add your description here" },
{ "id": "slide-img-7", "client": "nature beauty", "desc": "add your description here"}];
谢谢,
阿什
【问题讨论】:
标签: asp.net asp.net-mvc asp.net-mvc-3 asp.net-mvc-2 asp.net-ajax