如何以编程方式切换到控件中事件的asp:CompleteWizardStep
步骤?OnCreatingUser
asp:CreateUserWizard
ASP.NET 网络表单
<asp:CreateUserWizard ID="MyCreateUserWizard" runat="server" OnCreatingUser="MyCreateUserWizard_CreatingUser">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserStep1" runat="server">
<!-- code here -->
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep" runat="server">
<!-- code here -->
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreatedWizardStep>
背后的代码
protected void MyCreateUserWizard_CreatingUser(object sender, EventArgs e)
{
//retrieve username, password and email
Membership.CreateUser(username, password, email);
//would like to display the CompleteWizardStpe here
}