编程论坛
注册
登录
编程论坛
→
ASP.NET技术论坛
[求助]ASP.net C#如何自定义分页-->飙马转移
Liu018
发布于 2007-06-27 18:00, 501 次点击
请教 C#如何自定义分页
2 回复
#2
冰彩虹
2007-06-28 12:29
自定义分页只有从后台查询Sql着手吧
类似如下SQL:
SELECT TOP PageSize 数据列
FROM 表名
WHERE ( 1 = 1 AND 查询条件 AND RowGuid NOT IN
(SELECT TOP PageSize *PageIndex RowGuid FROM 表名 WHERE (1 = 1 AND 查询条件) order by RowGuid ) order by RowGuid)
#3
cyyu_ryh
2007-06-28 12:44
总共 <asp:Label ID="Label1" runat="server"><%=GridView1.PageCount %></asp:Label>
页,当前在<asp:Label ID="Label2" runat="server" Text="Label"><%=GridView1.PageCount+1 %></asp:Label>页<br />
<br />
1