仅在特定点击事件上显示更新进度gif图像。 [英] Show Update progress gif image only on specific click event.
本文介绍了仅在特定点击事件上显示更新进度gif图像。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DynamicLayout="false">
<ProgressTemplate>
<img src="GsNJNwuI-UM.gif" />
</ProgressTemplate>
</asp:UpdateProgress>
假设我有更新和删除按钮然后我只想让Updateprogress gif图像出现在更新按钮cLick
。
但在我的情况下,无论我点击更新还是删除它都显示在两种情况下:(
Suppose i''m having Update and Delete Button then i just want Updateprogress gif image to appear only on Update Button cLick
.
but in my case it appears whether i click on update or delete it shows in both conditions :(
推荐答案
放你更新面板中的r按钮,并在UpdatePregress中提供与AssociatedUpdatePanelID相同的ID。
Put your button inside update panel and give the id same as AssociatedUpdatePanelID in UpdatePregress.
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:button id="btnSearch" runat="server" text="Search" onclick="btnSearch_Click" />
</contenttemplate>
</asp:updatepanel>
祝你好运。
Good luck.
这篇关于仅在特定点击事件上显示更新进度gif图像。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文