next and last buttons not working in my datepager

Oct 1 2016 1:52 AM

<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();

}


Answers (2)