如何在数据列表中使用分页 [英] How to use paging In Datalist

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

问题描述

你好,

我在数据列表中分页时遇到麻烦.
我有两个表之一是tblQuestion字段是qid,question,creationdate
第二个表是tblAnswerChoice字段是ansid,qid,answeroptions.

现在我必须在数据列表中显示两个表中的记录
而且我必须一次显示1条记录.

最主要的改变是我必须根据创建日期显示记录

同一日期添加的所有数据将显示在数据列表中.

我需要使用下一个和上一个按钮一次在一个记录中分页进行数据分页



谢谢,
Deepak

Hello,

I am facing trouble with paging in datalist.
I have two table one is tblQuestion fields are qid,question,creationdate
and the second table is tblAnswerChoice fields are ansid, qid,answeroptions.

Now i have to show the record from both table in datalist
And I have to show 1 record at one time.

Main twist is I have to show the record according to creation date

All the data added on same date will be displayed in datalist .

I need paging in datalist with one record at one time with next and previous button



THanks,
Deepak

推荐答案

请参见
针对DataList的自定义分页 [ http://weblogs.asp.net/scottgu/archive/2006/01/07/434787.aspx [ ^ ]
See
Custom Paging for DataList[^]
http://weblogs.asp.net/scottgu/archive/2006/01/07/434787.aspx[^]


查看此链接

asp.net中的数据列表分页 [
see this link

datalist Paging in asp.net[^]


请参阅此链接


http://www.netomatix.com/development/datalistpaging.aspx [
Refer this link


http://www.netomatix.com/development/datalistpaging.aspx[^]


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

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