具有特定布局的数据分页
我正在尝试使用数据分页(不是自定义数据分页 - 只是正常的低效分页)大约最多 125 条记录,超过 5 页,每页 25 条记录。但是大多数示例似乎都使用 gridview 或 datagrid,但是我希望每条记录看起来像这样:
Record 1 Title
Record 1 Description
Record 1 Time: Record 1 Contact:
Record 2 Title
Record 2 Description
Record 2 Time: Record 2 Contact:
等等,但是使用网格,它们的结果就像一个每列都有绑定字段的表格,所以我无法显示它就像使用分页一样,我想到使用中继器,但是我认为我需要使用 viewstate,因为它没有内置分页,并且不想使用 ViewState,因为我已禁用此功能 - 有人可以帮忙吗?
I am trying to use data paging (not custom data paging - just normal inefficient paging) for about max 125 records, over 5 pages, 25 records per page. But most samples out there seem to be using a gridview or a datagrid, however I want each record to look like this:
Record 1 Title
Record 1 Description
Record 1 Time: Record 1 Contact:
Record 2 Title
Record 2 Description
Record 2 Time: Record 2 Contact:
etc etc, however with grids they result is like a table with bound fields for each column so I can't display it like that using paging, I thought of using a Repeater however I think I will need to use viewstate for that as it doesn't have paging built in and don't want to use ViewState as I have disabled this - can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在寻找的是 DataView或 中继器< /a>
I think what you are looking for is a DataView or a Repeater