-2

我想知道是否有人知道是否有任何用于在无序列表和有序列表上进行分页的出色插件,我想要一个简单但高度可定制的插件。如果有人有任何很棒的建议,我在下面找到了这个链接,有人以前用过吗?

http://www.jquery4u.com/plugins/10-jquery-pagination-plugins/

4

2 回答 2

2

任你选!

http://www.jquery4u.com/plugins/10-jquery-pagination-plugins/

于 2012-08-17T15:27:11.020 回答
1

尝试这个

Int Icount = ds1.Tables[0].Rows.Count(Total no of records, this should be come from Database tables);
        int startindexx = SIndex(here SIndex like a no of pages like 1,2,3,etc, it from your clicking pagination buttons);
        int EndIndex = SIndex;
        if (EndIndex == 1) { EndIndex = 0; }
        if (startindexx > 1) {
            startindexx = startindexx - 1;
            startindexx = startindexx * 10;
            startindexx = startindexx + 1;
            EndIndex = EndIndex * 10;
        }
        else {
            EndIndex = EndIndex + 10;
        }
        var Pages = 0; Pages = Icount / 10; var PagesReminder = Icount % 10;
        Icount = ds1.Tables[0].Rows.Count;
        int startindexx = Convert.ToInt32(SIndex);
        int EndIndex = Convert.ToInt32(SIndex);
        if (EndIndex == 1) {
            EndIndex = 0;
        }
        if (startindexx > 1) {
           startindexx = startindexx - 1;
           startindexx = startindexx * 10;
           startindexx = startindexx + 1;
           EndIndex = EndIndex * 10;
        }
        else {
           EndIndex = EndIndex + 10;
        }
        var Pages = 0; Pages = Icount / 10;
        var PagesReminder = Icount % 10;
        if (PagesReminder != 0) {
           Pages = Pages + 1; 
        }
于 2012-08-30T07:58:01.590 回答