如何管理ASP.net中的数千条记录 [英] How to manage thousands of record in ASP.net

查看:71
本文介绍了如何管理ASP.net中的数千条记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我已经开发了一个Web应用程序,该应用程序处理数据库中的数千条记录.我想一次获取1万条记录,并且
在页面上显示它们

我可以一次向他们显示100条记录.我使用了大小为100的gridview,
还有什么我可以实现的方法. ??? :confused :: confused:

在此先感谢

Sateesh

Hi all,


I have developed a web application which deals with a thousands of records in database. i want to fetch 10 thousands records at time and
show them on page

i can show them 100 records at a time for the same. I have use gridview with page size 100,
What are the more ways that i can implement. ??? :confused::confused:

Thanks in advance

Sateesh

推荐答案

为什么要一次性获取10,000条记录?

您可以按需" 获取页面请求上的记录.每页获取100条记录.
您可以使用回叫以获得最佳结果.有多种其他处理方式,但这取决于需求和所需的实现方式.

例如,如果您需要进行客户端分页,则可能需要一次性获取记录!
Why would you fetch 10,000 records in one go?

You can fetch records on page requests ''on demand''. Fetch 100 records per page.
You can use Callback to get best result. There are varioud other ways to handle it though which will depend on the requirements and the way you want the implementation.

For example, if you need to have client side paging then you might want to fetch the records in one shot!


这篇关于如何管理ASP.net中的数千条记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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