我使用ajax的UpdateProgress控件作为用户控件。它为项目中的所有updatePanels显示。有时我想为特定的更新面板隐藏这个updateProgress。任何帮助都是非常感谢的。
发布于 2012-09-07 01:41:38
您可以尝试使用以下代码
YourPanelContainer.Style.Add("display", "none"); //Add your control to panel or div对于此示例
<asp:Panel ID="YourPanelContainer" runat="server" Height="50px" Width="125px">
<asp:UpdateProgress ID="UpdateProgress1" runat="server" >
<ProgressTemplate>发布于 2012-09-12 07:40:17
设置UpdateProgress栏的AssociatedUpdatePanelID ="UP1“。这将确保进度条显示与其关联的ID。
这将确保在更新UP1时它会显示出来。
https://stackoverflow.com/questions/12305494
复制相似问题