当前位置:编程学习 > C#/ASP.NET >>

快来看看啊。datalist分页帮帮忙啊!!!

<asp:DataList ID="DataList1" runat="server" DataKeyField="id" DataSourceID="AccessDataSource1">
            <ItemTemplate>
                id:
                <asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>'></asp:Label><br />
                al:
                <asp:Label ID="alLabel" runat="server" Text='<%# Eval("al") %>'></asp:Label><br />
                tp:
                <asp:Label ID="tpLabel" runat="server" Text='<%# Eval("tp") %>'></asp:Label><br />
                jw_id:
                <asp:Label ID="jw_idLabel" runat="server" Text='<%# Eval("jw_id") %>'></asp:Label><br />
                hy_id:
                <asp:Label ID="hy_idLabel" runat="server" Text='<%# Eval("hy_id") %>'></asp:Label><br />
                ys_id:
                <asp:Label ID="ys_idLabel" runat="server" Text='<%# Eval("ys_id") %>'></asp:Label>
            </ItemTemplate>
        </asp:DataList>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/niahao.mdb"
            SelectCommand="SELECT * FROM [anli]"></asp:AccessDataSource>
怎么分页啊 --------------------编程问答-------------------- 用AspNetPager控件分页,参考:
http://www.cnblogs.com/bq-blog/archive/2010/03/09/1681631.html --------------------编程问答-------------------- 可以用分页存储过程
补充:.NET技术 ,  VB.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,