0

我正在使用 ASP.NET VS2010 和 C#.NET 作为后端语言,我没有使用 MVC。我在从服务器端加载数据时遇到问题。它显示正确的行数但没有数据。我的 JSON 响应是有效的 Json 字符串。

任何人都知道如何解决这个问题???????

这是我得到的响应字符串

{"sEcho": 1,"iTotalRecords": 2,"iTotalDisplayRecords": 2,"aaData": [{"Name":"IT","DescEn":"Information Technology","DescAr":"testing","CreatedOn":"18-03-2013","CreatedBy":"1"},{"Name":"HR","DescEn":"Human Resource","DescAr":"testing","CreatedOn":"18-03-2013","CreatedBy":"1"}]}

这是html

<table id='example' class="datatable">
                <thead>
                    <tr>
                        <th>
                            Name
                        </th>
                        <th>
                            DescEn
                        </th>
                        <th>
                            DescAr
                        </th>
                        <th>
                            CreatedOn
                        </th>
                        <th>
                            CreatedBy
                        </th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>

这是一个JS脚本

$(document).ready(function () {
            var oTable = $('#example').dataTable({
                "bProcessing": true,
                "bServerSide": true,
                "bDestroy": true,
                "sPaginationType": "full_numbers",
                "aaSorting": [[1, "desc"]],
                "sAjaxSource": '<%= Page.ResolveClientUrl("Request/GroupPage.aspx") %>',
                "aoColumns": [
           { "aaData": "Name" },
            { "aaData": "DescEn" },
            { "aaData": "DescAr" },
            { "aaData": "CreatedOn" },
            { "aaData": "CreatedBy" }
        ]
            });
        });

任何人都知道如何解决这个问题??????

4