显示记录页明智使用ASP.NET与C# [英] Display records page wise using ASP.NET with C#

查看:101
本文介绍了显示记录页明智使用ASP.NET与C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的网页,从MS SQL数据库中检索数据,并将其显示在良好的格式化方式来呈现。检索到的数据取决于由用户选择的标准。但有时检索到的数据是非常大的。我想显示记录到用户页面明智的,即当用户点击下一步按钮,100个记录第一页,接下来的100记录上显示出来。这意味着,当用户第一次选择查询条件,接下来的100记录检索,当他点击下一步按钮等,以减少传输从服务器到客户端的数据只有100记录应被检索。

I have created web page that retrieves data from MS SQL database and display it to the user in well formatted manner. Data retrieved depend upon criteria selected by the user. But sometimes data retrieved is very large. I want to display records to the user page wise, i.e. 100 records on first page and next 100 records displayed when user clicks next button. This means only 100 records should be retrieved when user first select search criteria, next 100 records retrieved when he clicks next button and so on, as to reduce data transferred from server to client.

请建议我如何尽快实现这一目标。先谢谢了。

Please suggest me how to achieve this as soon as possible. Thanks in advance.

推荐答案

你所寻找被称为页面

这是可以做到一个亿的方法。你提到的jquery,javascript和asp.net。对于显示的目的,这是比较所有右击但良好的性能要确保页面的实际选择具有在后端做。

This can be done a million ways. You mention jquery, javascript and asp.net. For displaying purpose that is quite all righ but for good performance you want to make sure that the actual selection of the page has to be done at the backend.

一种方法是这样的:
http://msdn.microsoft.com/en-us/library/aa479347.aspx 这不是jQuery的,但它显示了一个办法做到这一点。

One approach is this: http://msdn.microsoft.com/en-us/library/aa479347.aspx This is not jquery but it shows a way to do it.

这篇关于显示记录页明智使用ASP.NET与C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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