asp.net GridView分页中页脚如何加上当前页和总页数

来源:百度知道 编辑:UC知道 时间:2024/05/25 04:19:48
在后台代码中的实现?
在前台html中又该怎么做?
那要怎么放在跟"上下一页" 同一行的页脚中

参照如下代码改下html样式就好 ,不明白的留言我

<table width="100%">
<tr>
<td style="text-align:right">
第<asp:Label id="lblPageIndex" runat="server" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
共/<asp:Label id="lblPageCount" runat="server" text='<%# ((GridView)Container.Parent.Parent).PageCount %>' />页
<asp:linkbutton id="btnFirst" runat="server" causesvalidation="False" commandargument="First" commandname="Page" text="首页" />
<asp:linkbutton id="btnPrev" runat="server" causesvalidation="False" commandargument="Prev" commandname="Page" text="上一页" />
<asp:linkbutton id="btnNext" runat="server" causesvalidation="False" commandargument="Next" com