我如何在DataPager Control中更改位置的第一个和最后一个按钮

时间:2012-05-07 19:36:49

标签: asp.net css datapager

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

我如何获得此订单

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

enter image description here

这是我的代码

              <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>

1 个答案:

答案 0 :(得分: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>