如何从顶部将数据/控件插入面板 [英] How to insert data/controls into a panel from its top

查看:60
本文介绍了如何从顶部将数据/控件插入面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将新控件添加到面板时,该控件应添加到顶部.

示例:我有4条通知. 10秒后,将出现一个新通知,该通知应动态添加到顶部,并保留4个较旧的通知,因为它低于该通知.

请提出我将如何解决此问题的建议,并给出一些其他想法(添加到面板中).

谢谢

When a new control is going to add to a panel that should add at the top.

Example :I have 4 notifications . After 10 second a new notification will come that should be added at the top dynamically ,remaining the 4 older notifications as it is below that.

Please suggest how i will solve this problem and give some ideas other than this(adding into panel).

Thanks

推荐答案

^ ]


由于您已经更新了问题并要求动态查询,因此可以通过服务器方式进行.

使用计时器重新发布表单,或使用UpdatePanel,然后重新绑定到按需要排序的数据源.为此可以使用中继器.

从客户端进行AJAX调用并使用JQuery方法,例如之前 [
Since you have updated the question and asked for dynamic there are serveral ways to do this.

Use a timer to repost the form, or using an UpdatePanel, and rebind to a datasource the is sorted as you require. A Repeater would work for this.

From the client make an AJAX call and use JQuery methods, such as before[^] to add a new element.


这篇关于如何从顶部将数据/控件插入面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆