code_junkie

Using DataPager without retrieving all rows on each request

Nov 13th, 2011
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. int total;
  2. List<Client> clientList =
  3. clientData.GetClients(criteria, pageNum, pageSize, out total);
  4. uxClientList.DataSource = clientList;
  5. uxClientList.DataBind();
  6.  
  7. List<Client> clientList = clientData.GetClients(criteria);
  8. uxClientList.DataSource = clientList;
  9. uxClientList.DataBind();
Add Comment
Please, Sign In to add comment