【发布时间】: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