2011-04-20 39 views
0

我对他们使用了两个asp:updatepanel和2 asp:updateprogress。当我从不使用AssociatedUpdatePanelID时更新进度正确显示,但如果使用AssociatedUpdatePanelID,则进度栏永不显示。2 asp:updatepanel和2 asp:updateprogress控件

<asp:UpdateProgress AssociatedUpdatePanelID="upMainPracticeCountry" runat="server" ID="UpdateProgress1"> 
        <ProgressTemplate> 
         <img src="images/loading.gif" alt="loading..." /></ProgressTemplate> 
       </asp:UpdateProgress> 
       <asp:UpdatePanel ID="upMainPracticeCountry" runat="server"> 
        <Triggers> 
         <asp:AsyncPostBackTrigger ControlID="ddlMainPracticeCountry" EventName="SelectedIndexChanged" /> 
        </Triggers> 
        <ContentTemplate> 
         <asp:DropDownList ID="ddlMainPracticeState" runat="server"> 
         </asp:DropDownList> 
        </ContentTemplate> 
       </asp:UpdatePanel> 

和其他更新面板

<asp:UpdateProgress runat="server" ID="up2" AssociatedUpdatePanelID="upPostalCountry"> 
       <ProgressTemplate> 
        <img src="images/loading.gif" alt="loading..." /></ProgressTemplate> 
      </asp:UpdateProgress> 
      <asp:UpdatePanel ID="upPostalCountry" runat="server" UpdateMode="Conditional"> 
       <Triggers> 
        <asp:AsyncPostBackTrigger ControlID="ddlPostalCountry" EventName="SelectedIndexChanged" /> 
       </Triggers> 
       <ContentTemplate> 
        <asp:DropDownList ID="ddlPostalState" runat="server"> 
        </asp:DropDownList> 
       </ContentTemplate> 
      </asp:UpdatePanel> 

回答

0

不完全知道发生了什么,但是在你能尝试设置的AutoPostBack =“真”在更新面板的下拉列表中?