for example i have some list with 120 entries.
Threads = new List<Thread>();
and i will return to show in my view just 10 of them.
I have a properties like, TotalCount, TotalPages, PageSize=10, PageIndex.
How can I do that?
Take care,
Ragims
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a combination of Skip and Take:
Or, if PageIndex is zero based (the first page is PageIndex = 0) then: