且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

显示前5个过滤器值

更新时间:2023-12-03 20:22:34

现在我们可以显示列表中的项目,但无法显示更多/更少的链接.该列表被动态绑定到Repeater控件,这是我们面临的问题,无法显示更多/更少的链接.

在中继器之后添加更少的链接

在点击更多链接时,也不应该刷新整个页面
尝试使用UpdatePanel

我们不应该点击数据库重新填充列表以显示更多项目.
尝试从数据库加载完整列表,然后将结果保存在会话变量中.从该列表中选择所需的项目

问候
Espen Harlinn
Now we are able to display the items in the list but we aren’t able to get the more/less link displayed. The list gets dynamically binded to a Repeater Control and this is where we are facing issue to display the more/less link.

Add more less link after the repeater

Also on clicking of the more link, the whole page should not be refreshed
Try using an UpdatePanel

and we should not be hitting the DB to repopulate the list to show more items.
Try loading the complete list from DB and save the result in a session variable. Pick the required items from that list

Regards
Espen Harlinn