Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在datatable Jquery中使用Repeater asp.net_C#_Jquery_Asp.net_Datatable - Fatal编程技术网

C# 在datatable Jquery中使用Repeater asp.net

C# 在datatable Jquery中使用Repeater asp.net,c#,jquery,asp.net,datatable,C#,Jquery,Asp.net,Datatable,我是ASP.NET技术的新手,我正在尝试使用带有转发器的datatable Jquery 但它不适用于表中的值。它只在头部工作(见下文)。这些数据来自数据库 <asp:Repeater ID="Repeater1" runat="server" DataSourceID="Model2"> <HeaderTemplate> <table id="table_id"> <thead>

我是ASP.NET技术的新手,我正在尝试使用带有转发器的datatable Jquery

但它不适用于表中的值。它只在头部工作(见下文)。这些数据来自数据库

    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="Model2">
        <HeaderTemplate>
        <table id="table_id">
            <thead>
        <tr>
            <th>Nom</th>
            <th>ip</th>
            <th>askit</th>
        </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
            <tr>
            <td><%# Eval("Li_Id")%></td>
            <td><%# Eval("Li_ip")%> </td>
            <td><%# Eval("Li_nom_askit")%> </td>
            </tr>
            </tbody>
        </ItemTemplate>

         <FooterTemplate>
        </table>
        </FooterTemplate>
    </asp:Repeater> 

例如,id为“594”的行不在我创建的数据表中。 我尝试使用ListView,但它不起作用

有人知道为什么吗


谢谢

您正在每行周围创建一个单独的tbody。将开头的tbody标记移动到页眉模板的末尾,将结尾的tbody标记移动到页脚模板的开头


(我假设您指的是datatables.net jQuery插件。)

不客气。如果你能接受这个答案,我将不胜感激!