pagination class


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public class DataPage<T>
  2.  
  3. {
  4.  
  5. public List<T> Data = new List<T>();
  6.  
  7. public int RecordCount = 0;
  8.  
  9. public int PageSize = 20;
  10.  
  11. public int PageIndex = 0;
  12.  
  13. public int PageCount { get{ return (RecordCount ==0 || PageSize==0) ? 0
  14.  
  15. : (RecordCount + PageSize - 1) / PageSize;}}
  16.  
  17. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.