2012-08-17 48 views
-3

我不知道是否有人知道,如果做分頁任何偉大的插件在無序和有序列表,我想一個簡單的,但高度可定製的插件。如果任何人有任何建議,將是偉大的,我已經找到了下面的鏈接,任何人之前使用過任何?分頁對列表

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

+1

你能告訴我們你已經擁有? – 2012-08-17 15:26:51

+0

你想分頁嗎? – 2012-08-17 15:27:02

回答

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; 
     }