如何从每个PostBack中的数据集中设置5行 [英] How to get Set 5 rows from dataset in every PostBack

查看:96
本文介绍了如何从每个PostBack中的数据集中设置5行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





帮我解决以下问题。



我有数据集和数据集的行数为'n'。



我想显示数据集中表格的前5行。



我的页面每1分钟刷新一次。所以每当我的页面刷新时,我需要显示数据集中接下来的5行。



For示例

如果我的数据集有15行。



第一次加载页面时,它应该只显示/获取前5行(1来自数据集。



我们页面回发/刷新它应该显示数据集的第二组5行(6到10)。



再次当页面回发时,它应显示数据集中5行(11到15)的第三组。



注意:我没有在我的webPage中使用GridView。

我使用动态控件来填充数据集中的数据。





谢谢,



David

Hi,

Help me to sort the below issue.

I have a Dataset and the Dataset has Tables with 'n' number of rows.

I want to display first 5 rows from the table in dataset.

My Page will refresh every 1 minutes.So Whenever my pages is refreshing I need to display the next 5 rows from the dataset.

For Example
If my dataset has 15 rows.

When loading the page for first time it should display/get only first 5 rows (1 to 5)from the dataset.

Wehn the page postback/refresh it should dispaly second set of 5 rows (6 to 10) from the dataset.

And again when the page postback it should dispaly thirdset of 5 rows (11 to 15) from the dataset.

Note:I am not using GridView in my webPage.
I am using dynamic controls to populate the data's from the dataset.


Thanks,

David

推荐答案

您好,

看看:通过查询结果进行分页

这篇关于如何从每个PostBack中的数据集中设置5行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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