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

Posted on 2011-05-08
Medium Priority
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
  • 2
LVL 14

Expert Comment

by:Dhanasekaran Sengodan
ID: 35717857
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

Dhanasekaran Sengodan earned 2000 total points
ID: 35717863

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

862 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