0

如何更改 DataPager 控件中元素的位置

我怎样才能得到这个订单

<< < 1 2 3 4 5 ... > >>

在此处输入图像描述

这是我的代码

              <asp:DataPager ID="DataPager1" runat="server" PagedControlID="" PageSize="10"  >

        <Fields>
        <asp:NextPreviousPagerField
           ShowFirstPageButton="True"
           ButtonCssClass="" ButtonType="Link"
           FirstPageText="<<" LastPageText="<<"
           NextPageText=">" PreviousPageText="<"
           ShowLastPageButton="True" ShowNextPageButton="True"
           ShowPreviousPageButton="True" />

             <asp:NumericPagerField
                     ButtonType="Link"
                 PreviousPageText="privuse"
                       RenderNonBreakingSpacesBetweenControls="False"/> 

            </Fields>

  </asp:DataPager>
4

1 回答 1

0

好的,搜索后我资助答案

这是我编辑后的代码

      <asp:DataPager ID="DataPager1" runat="server" PagedControlID="" PageSize="10"  >

        <Fields>

        <asp:NextPreviousPagerField
             ButtonType="Link"
           LastPageText="<<"
         PreviousPageText="<"
           ShowLastPageButton="True"
             ShowPreviousPageButton="True" />

             <asp:NumericPagerField
                     ButtonType="Link"
                         PreviousPageText="privuse"
                         RenderNonBreakingSpacesBetweenControls="False"
        /> 

            <asp:NextPreviousPagerField
            ShowFirstPageButton="True"
            ButtonType="Link"
           FirstPageText=">>" 
            NextPageText=">"
           ShowNextPageButton="True" />


            </Fields>

  </asp:DataPager>
于 2012-05-07T19:48:22.803 回答