<asp:DataPager ID="DataPager1" runat="server" PagedControlID="lstView1" PageSize="12">
<fields>
<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="true" ShowLastPageButton="false" ShowNextPageButton="false" /><asp:NumericPagerField ButtonCount="5" /> <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="true" ShowNextPageButton="true"ShowPreviousPageButton="false" />
</fields></asp:DataPager>
protected void lstView1_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e){
DataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
bindAll();}