Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 300 多条记录的列表视图,我想打印这个列表视图,但每页中每 50 条记录。如何在 ASP.net 中执行此任务
您可以使用 Linq 仅获取您需要的记录
MyList.Skip(pageNo * totalPerPage).Take(totalPerPage).ToList()