Sandeep Singh Shekhawat

Sandeep Singh Shekhawat

  • NA
  • 19.7k
  • 28.3m

DataPager is not working with List View

Oct 24 2012 1:32 AM
I have a ListView:

<asp:ListView ID="lstMovie" ItemPlaceholderID="placeHolderMovie" runat="server" >
</asp:ListView>

And Have a dataPager

 <asp:DataPager ID="dataPager1" runat="server" PagedControlID="lstMovie" PageSize=2>
        <Fields>
            <asp:NextPreviousPagerField  ButtonType="Button" ShowFirstPageButton="true" ShowLastPageButton="true" />
        </Fields>    
    </asp:DataPager>

But its not working.Can you pls suggest for it?


Thanks
Sandeep

Answers (2)