Posted By

housecor on 09/08/10


Tagged

pagination


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


pagination class


 / Published in: C#
 

  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  

You need to login to post a comment.