HOw to add pager control in the top and bottom of the listview control.

Posted on 2011-05-08
Last Modified: 2012-05-11
I have implemented a asp:listview and pager control. How can I make it appear in both top and bottom of the list view contorl please help.
<asp:DataPager ID="dpProduct" runat="server"  PageSize="100" PagedControlID="lvProducts">
             <asp:NextPreviousPagerField FirstPageText="First" ShowFirstPageButton="True" 
             ShowNextPageButton="False" ShowPreviousPageButton="True" PreviousPageText = " <" />
      <asp:NumericPagerField  ButtonCount="5"/>
      <asp:NextPreviousPagerField LastPageText="Last" ShowLastPageButton="True" 
             ShowNextPageButton="True" ShowPreviousPageButton="False" NextPageText=">" />
Goto To page:<asp:TextBox ID="txtPage" runat="server"></asp:TextBox>
        <asp:Button ID="btnGoPage" runat="server" onclick="btnGoPage_Click" Text="Go" />        of <asp:Label ID ="lblPageCount" runat="server"></asp:Label>

Open in new window

Question by:TrialUser
    LVL 14

    Expert Comment

    by:Dhanasekaran Sengodan
    Check out this article:
    <asp:DataPager ID="ProductListPagerCombo" runat="server"
       PagedControlID="ProductList" PageSize="5">
          <asp:NextPreviousPagerField FirstPageText="&lt;&lt;" ShowFirstPageButton="True"
                 ShowNextPageButton="False" ShowPreviousPageButton="False" />
          <asp:NumericPagerField />
          <asp:NextPreviousPagerField LastPageText="&gt;&gt;" ShowLastPageButton="True"
                 ShowNextPageButton="False" ShowPreviousPageButton="False" />

    Open in new window

    LVL 14

    Accepted Solution


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now