Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Razor
@using JCT.Website.Model;
   @{
       ViewBag.Title = "StudentList";
       var notOrdered = (List<FranchiseeStudent>)ViewBag.StudentNotOrdered;
       var paidOrdered = (List<FranchiseeStudent>)ViewBag.StudentPaidOrdered;
       var unPaidOrdered = (List<FranchiseeStudent>)ViewBag.StudentUnPaidOrdered;
       var allStudents = (List<FranchiseeStudent>)ViewBag.AllStudents;
   }
Posted
Updated 25-Jul-19 23:50pm
v2
Comments
sashkhdr 26-Mar-15 2:13am    
i want to conver this to pagekist
Afzaal Ahmad Zeeshan 26-Mar-15 2:59am    
How do you want to convert? What is pagekist? What is the pagedlist... Be specific please.
sashkhdr 26-Mar-15 3:03am    
i want to do paging...that's why i want convert list to pagelist
sashkhdr 26-Mar-15 3:04am    
in control i used ViewBag.StudentNotOrdered = studentNotOrdered
.Take(pageSize).ToList().ToPagedList(page ?? 1,20);

IPagedList<ViewModel> ipagedListConversion = listContainedVariable.ToPagedList(pageNumber ?? 1, 3);
 
Share this answer
 
//IPagedList<viewmodel> ipagedListConversion = listContainedVariable.ToPagedList(pageNumber ?? 1, 3);
 
Share this answer
 
Comments
Richard Deeming 26-Jul-19 9:31am    
If you're getting the "error posting your solution" message, try reloading the page before submitting again. There is currently a bug which means the solution is posted despite the error message. By submitting again without checking you've posted five almost identical copies of the same solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900