62,047
社区成员
发帖
与我相关
我的任务
分享
<asp:HiddenField ID="hf_category" runat="server" />
<div class="alPage">
<asp:DataPager ID="dp_party" runat="server" PagedControlID="repList" PageSize="2"
EnableViewState="false">
<Fields>
<asp:TemplatePagerField>
<PagerTemplate>
共<%= DataCount%>条记录, 当前第<asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.TotalRowCount>0 ? (Container.StartRowIndex / Container.PageSize) + 1 : 0 %>" />/<asp:Label
runat="server" ID="TotalPagesLabel" Text="<%# Math.Ceiling ((double)Container.TotalRowCount / Container.PageSize) %>" />页,
</PagerTemplate>
</asp:TemplatePagerField>
<asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="true" ShowPreviousPageButton="true"
ShowLastPageButton="false" ShowNextPageButton="false" FirstPageText="首页" ButtonCssClass="PageCss"
PreviousPageText="上页" />
<asp:NumericPagerField />
<asp:NextPreviousPagerField ButtonType="Link" ShowNextPageButton="true" ShowLastPageButton="true"
ShowFirstPageButton="false" ShowPreviousPageButton="false" LastPageText="末页"
ButtonCssClass="PageCss"
NextPageText="下页" />
</Fields>
</asp:DataPager>
<asp:ObjectDataSource ID="ods_repository" runat="server" SelectMethod="GetData"
TypeName="ZWW.BLLNEW.ZZK.PageBusiness" MaximumRowsParameterName="pageSize" StartRowIndexParameterName="startIndex"
EnablePaging="True" SelectCountMethod="GetAmount" EnableViewState="false">
<SelectParameters>
<asp:ControlParameter ControlID="hf_category" Name="category_id" PropertyName="Value"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>