使用数据列表自定义分页 [英] Custom Paging With Datalist

查看:79
本文介绍了使用数据列表自定义分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想要在数据列表中进行自定义分页.

首先请仔细阅读要求.

我有存储记录tblRecord的表.所有记录都显示在Gridview的前端.如果用户选择记录号4,则在下一页中将显示该记录.如果记录是第一条记录,则出现下一个按钮,并一一显示所有记录.如果用户选择了中间记录,则该记录将显示在下一页中,并显示下一个和上一个按钮.

我不知道如何为数据列表实现PagedDataSource.任何人都可以帮助我解决我的问题.

谢谢,
Deepak

Hello,

I want custom paging in Datalist.

First read carefully the requirement.

I have table which stores the record tblRecord. All the record are displayed in front end in Gridview. If user select the record number 4 then in next page it will show that record. If the record is first then next button appears and show all records one by one. And if the user has selected the middle record then that record will display in next page and next and previous button appears.

I have no idea how to implement PagedDataSource for Datalist. Any one can help me to solve my problem.

Thanks,
Deepak

推荐答案

http: //weblogs.asp.net/scottgu/archive/2006/01/07/434787.aspx [

请参阅:
http://forums.asp.net/t/1108198.aspx [如何在asp.net. [ ^ ]
Refer this:
http://forums.asp.net/t/1108198.aspx[^]
the above link providesd the code with paged data source
How to give the Paging in " Datalist" in asp.net.[^]


查看相同的讨论
在数据列表中分页
word文档
See the same discussion
Paging in datalist
word document


这篇关于使用数据列表自定义分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆