How can I simultaneously display one DataPager control in two places on a page?

I have a DataPager control that looks like this:

<asp:DataPager ID="page1" PagedControlID="ExperienceList" runat="server" PageSize="3" OnPreRender="page1_PreRender">
<Fields>
<asp:TemplatePagerField>
<PagerTemplate>
<asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="true" CssClass="default"
OnSelectedIndexChanged="ddlPage_SelectedIndexChanged"></asp:DropDownList>
</PagerTemplate>
</asp:TemplatePagerField>
</Fields>
</asp:DataPager>

I set this datapager control to the place where I want the dropdown menu to appear.

It all works fine, but now my problem is that I need another drop-down control to work in exactly the same way, but at the bottom of the list, as well as the one at the top.

Is there any way to link this existing datapager, or do I need to create a completely separate datapager at the bottom of the list and somehow link them together?

+3
source share
1

+2

Source: https://habr.com/ru/post/1713749/


All Articles