AJAX"装载"与UpdatePanel的回发图标 [英] ajax "loading" icon with UpdatePanel postbacks
本文介绍了AJAX"装载"与UpdatePanel的回发图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有被动态地根据使用Ajax(建于.NET的Ajax的UpdatePanel)。用户选择建立了一个表格
I have a form that is being dynamically built depending on user selection using Ajax (built in .NET Ajax with UpdatePanel).
我怎么可以插入一个标准的AJAX加载图标(也许有它附着在鼠标指针),而回发发生,那么当回发完成去除呢?
how can I insert a "standard" ajax loading icon (maybe have it attached to the mouse pointer) while the postback is happening then remove it when the post back is finished?
我已经安装了AjaxToolKit是否有帮助。
I do have the AjaxToolKit installed if that helps.
推荐答案
工具包使用的UpdateProgress:希望这会帮助你。
use updateprogress of tool kit :hope this will help you
<asp:updatepanel id="ResultsUpdatePanel" runat="server">
<contenttemplate>
<div style="text-align:center;">
<asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="ResultsUpdatePanel" dynamiclayout="true">
<progresstemplate>
<img src="support/images/loading.gif">
</progresstemplate>
</asp:updateprogress>
</div>
//your control code
</contenttemplate>
</asp:updatepanel>
这篇关于AJAX&QUOT;装载&QUOT;与UpdatePanel的回发图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文