<asp:DataPager ID="DataPager1" runat="server">
                               <Fields>
                                   <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                       ShowLastPageButton="True" />
                               </Fields>
                           </asp:DataPager>也就是这段代码好像失效了
因为我用这种方式来连接数据库如下:ListView1.DataSource = ds;