【问题标题】:UpdatePanel not firing inside WizardUpdatePanel 未在向导中触发
【发布时间】:2011-05-31 14:15:06
【问题描述】:

我在向导中有一个更新面板:

    <asp:WizardStep ID="WizardStep2" runat="server" StepType="Auto" 
       Title="Set the number of users required.">

       ...
       <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Always" runat="server">
          <ContentTemplate>
             <asp:Label runat="server" ID="ProgressInd" Text="Progress..." />
             <asp:Button runat="server" OnClick="GoButton_Click" ID="ProgressBtn" Text="Go" />
          </ContentTemplate>
       </asp:UpdatePanel>
    </asp:WizardStep>

   ...

   protected void GoButton_Click(object sender, EventArgs e)
   {
      ProgressInd.Text = "Progress... Moving";
   }

当我将更新面板从向导中取出时,它工作得很好,但在向导中单击事件不会触发。我正在使用Firefox进行测试,但IE也不起作用。任何想法或帮助表示赞赏。

【问题讨论】:

  • 如果你再次点击按钮,你会发现文字更新了吗?
  • 您在该向导步骤中是否有任何验证器控件?
  • 是的,就是这样!我有两个验证器。一旦他们通过,事件就会被发布。您能否将其发布为答案。谢谢。

标签: c# asp.net updatepanel wizard


【解决方案1】:

为了记录。保罗发现了我的问题。存在阻止事件触发的页面验证器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-21
    • 2015-07-21
    • 2018-03-19
    • 2020-02-01
    • 2010-12-22
    相关资源
    最近更新 更多