Link to home
Start Free TrialLog in
Avatar of TrialUser
TrialUserFlag for Afghanistan

asked on

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

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">
               <Fields>
             
               
             <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=">" />
             </Fields>
             
</asp:DataPager>  
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

Avatar of Dhanasekaran Sengodan
Dhanasekaran Sengodan
Flag of India image

Check out this article:

http://www.4guysfromrolla.com/articles/021308-1.aspx
<asp:DataPager ID="ProductListPagerCombo" runat="server"
   PagedControlID="ProductList" PageSize="5">
   <Fields>
      <asp:NextPreviousPagerField FirstPageText="&lt;&lt;" ShowFirstPageButton="True"
             ShowNextPageButton="False" ShowPreviousPageButton="False" />
      <asp:NumericPagerField />
      <asp:NextPreviousPagerField LastPageText="&gt;&gt;" ShowLastPageButton="True"
             ShowNextPageButton="False" ShowPreviousPageButton="False" />
   </Fields>
</asp:DataPager>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Dhanasekaran Sengodan
Dhanasekaran Sengodan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial