最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Pagination for lists - Stack Overflow

programmeradmin0浏览0评论

I was wondering if anyone knows if any great plugins for pagination on unordered and ordered lists, I would like an easy but highly customisable plugin. If anyone has any suggestions that would be great, I've found this link below, has anyone used any before?

/

I was wondering if anyone knows if any great plugins for pagination on unordered and ordered lists, I would like an easy but highly customisable plugin. If anyone has any suggestions that would be great, I've found this link below, has anyone used any before?

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

Share Improve this question edited May 6, 2014 at 15:42 Zong 6,2405 gold badges33 silver badges46 bronze badges asked Aug 17, 2012 at 15:25 ShannonShannon 5701 gold badge6 silver badges14 bronze badges 2
  • 1 Can you show us what you already have? – Lukas Eder Commented Aug 17, 2012 at 15:26
  • What are you trying to paginate? – Scott Simpson Commented Aug 17, 2012 at 15:27
Add a ment  | 

2 Answers 2

Reset to default 2

Take your pick!

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

try this

Int Icount = ds1.Tables[0].Rows.Count(Total no of records, this should be e 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; 
        }
发布评论

评论列表(0)

  1. 暂无评论