Skip to content

Next and last buttons not working in my datepager

sanjaykumar pushadapu

Asked Sep 30, 2016, 9:52 PM EDTSolved
Share
LinkedInX

<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>

TypeScript
protected void lstView1_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
{
DataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);


bindAll();

}

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Delpin Susai Raj
    ✓ Accepted answer0
    http://stackoverflow.com/questions/234289/listview-with-datapager-not-working
    0
  • Delpin Susai Raj
    0
    http://stackoverflow.com/questions/9066966/datapager-doesnt-list-further-than-the-2nd-page
    0