Die*_*r G 14 webforms asp.net-ajax
有没有办法让一个UpdateProgress控件与多个UpdatePanel控件相关联?这样的事情:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
.....
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
.....
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress3" runat="server" AssociatedUpdatePanelID="UpdatePanel1, UpdatePanel2">.....
Run Code Online (Sandbox Code Playgroud)
小智 30
从标记中删除AssociatedUpdatePanelID,它将按您的意愿工作.
Ral*_*lle -1
我不这么认为。以编程方式尝试此操作,它坚持要求 UpdatePanel 有一个字符串 ID,并且没有指示您可以将 UpdatePanel 集合与特定 UpdateProgress 控件关联。
UpdateProgress1.AssociatedUpdatePanelID = "UpdatePanel1";
Run Code Online (Sandbox Code Playgroud)
从元数据:
Summary:
// Gets or sets the ID of the System.Web.UI.UpdatePanel control that the System.Web.UI.UpdateProgress
// control displays status for.
Run Code Online (Sandbox Code Playgroud)
所以,我看不出你能做到这一点。不过,好问题。
| 归档时间: |
|
| 查看次数: |
10540 次 |
| 最近记录: |