当我单击更新面板内的图像按钮时,我试图显示进度图像。在按钮上单击 c# 代码应该运行并显示更新进度图像。使用此代码,它运行 c# 代码但不显示进度图像,如果我删除回发触发器,则它显示进度图像但 c# 不运行。知道如何解决吗?
<div id="scriptmanager">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/SurveyImages/clean.jpg"
onclick="cmd_clean_emergency_Click"
style="-webkit-appearance:push-button; border-radius:5px; border: 4px solid #E9A732" Enabled="False"
/>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="ImageButton1"/>
</Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="0" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<img src="images/ProgressBar1.jpg" />
</ProgressTemplate>
</asp:UpdateProgress>
</div>