简体   繁体   中英

Fix number of Items in Datalist ASP.net

我希望在数据列表中有固定数量的项目,而其余的仅在单击“显示更多”按钮时显示。

Use .Take(n) when setting the datasource. When they click show more don't use the Take() method

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM