在页面中显示数据库中的前10条记录 [英] displaying first 10 records from database in a page

查看:80
本文介绍了在页面中显示数据库中的前10条记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要在第一页上显示数据库中的前10条记录,在第二页上显示另外10页,依此类推.请任何有任何想法的机构,然后引用我.


在此先感谢
chintamani



i need to display first 10 records from database in first page ,and 2nd page another 10 page and so on .please any body having any idea ,then refer to me.


thanks in advance
chintamani

推荐答案

以下CodeProject文章可能会满足您的要求

ASP.NET的分页器控件 [
The following CodeProject article may help your requirement

Pager Control for ASP.NET[^]

If your problem is solved, you may accept and vote the solution, otherwise please post your queries


PES




首先,将所有数据从数据库检索到数据集中.根据页码将所有数据划分为几页.再次使数据集包含许多表,每个表有10条记录.它会减少连接.并单击基于该绑定数据集.tables [pageindex]到gridview的分页导航时.

它将解决您的问题,对于任何问题,您都可以与我讨论.

永远与您同在:-)

如果这是您的解决方案,请不要忘记标记.
Hi,

First, retrieve all data from database into dataset. divide all data based on page number into pages. and again make dataset with many tables with 10 records per table. it will be connection less. and when you click paging navigation based on that bind dataset.tables[pageindex] to gridview.

It will solve your problem, for any problem you can discuss with me.

With You For You Always :-)

Don''t forget to mark, if it is your solution.


这篇关于在页面中显示数据库中的前10条记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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