Как программно переключиться на шаг 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
}