0

我正在使用 ajax 的 UpdateProgress 控件作为用户控件。它显示在项目中的所有更新面板中。有时我想为特定的更新面板隐藏这个 updateProgress。任何帮助表示赞赏。

4

2 回答 2

0

为 UpdateProgress 栏设置 AssociatedUpdatePanelID ="UP1"。这将确保显示与其关联的 ID 的进度条。

这将确保它会在 UP1 更新时显示出来。

于 2012-09-11T23:40:17.447 回答
0

您可以尝试使用此代码

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-06T17:41:38.420 回答