如何做到有效的寻呼经典ASP? [英] How to do effective paging in Classic ASP?

查看:119
本文介绍了如何做到有效的寻呼经典ASP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想页表,虽然我有分页已经工作,它显示在单行每一页有previous /下一个环节一起,造成HTML页面打破,如果有很多结果(这往往也有)。

I'm trying to page a table, and while I have paging already working, it displays every page in a single line along with Previous/Next links, causing the HTML page to break if there are a lot of results (which often there are).

我想要做的是显示的10个批次,例如网页1 ... 10,如果你是10页,然后点击下一步,则变为11-20,等等。我应该如何去这样做呢?

What I'd like to do is display the pages in batches of 10, e.g. 1...10, if you're on page 10 and click "Next" then it changes to 11-20, and so on. How should I go about doing this?

推荐答案

韦恩我建议你看一下 ajaxed ASP库 。这是一个仍然活跃传统的ASP项目,该项目提供了通用的分页(适用于所有类型的数据结构),并使用它的 DataTable控件

Wayne I would recommend you have a look at ajaxed asp library. It is a still active classic ASP project which provides generic paging (for all kind of data structures) and also uses the paging mechanism within its Datatable control.

这易于控制,您可以创建一个表只是一个SQL查询。类似asp.net的Datagrid的。充分AJAX为好。

That control easily allows you to create a table with just a SQL Query. Similar to asp.net's Datagrid. Fully AJAX as well.

检查数据表的例子,你会看到该批次分页和更多...一切充分configureable。

Check the datatable examples and you will see the batch paging and more... everything fully configureable.

支持的DB的MySQL,SQLite的,的MS Access,MS SQLSERVER,甲骨文

Supported DBs are MySQL, sqlite, MS Access, MS Sqlserver, Oracle

这篇关于如何做到有效的寻呼经典ASP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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