ASP.Net : DataPager Control always a step behind with paging
问题 Take the following example...a page with a ListView and a DataPager used for paging the data of the ListView : Code Behind: protected void Page_Load(object sender, EventArgs e) { MyList.DataSource = GetSomeList(); MyList.DataBind(); } Source: <asp:ListView ID="MyList" runat="server"> <% //LayoutTemplate and ItemTemplate removed for the example %> </asp:ListView> <asp:DataPager ID="ListPager" PagedControlID="MyList" runat="server" PageSize="10"> <Fields> <asp:NumericPagerField /> </Fields> <