如何从数据库中获取接下来20条记录为相同的搜索条件? [英] How to fetch the next 20 records from the database for the same search criteria?

查看:155
本文介绍了如何从数据库中获取接下来20条记录为相同的搜索条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一次从数据库中的获取20条记录的要求(该数据库包含至少有100个记录)时,在搜索按钮,用户点击。当用户点击下一步页按钮,接下来的20条记录应是为获取在相同的搜索 criteria.How我可以实现,在我asp.net应用程序?

I have a requirement to fetch 20 records at a time from the database(The database contains atleast 100 records) when the user clicks on search button. When the user clicks the next page button, the next 20 records should be fetched for the same search criteria.How can i implement that in my asp.net application?

请帮忙。

推荐答案

您可以选择其中你的条件适用于它传递给ASP.NET的GridView和应用分页的教程尝试使用选择fldName从表名在数据库中的所有数据这种

You can select all data in your Database using Select fldName From TableName Where "Your Condition" is applied pass it to asp.net Gridview and apply Paging for tutorials Try this

Asp.Net寻呼

这篇关于如何从数据库中获取接下来20条记录为相同的搜索条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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