title: Programmatically switch to CompleteWizardStep in CreateUserWizard control
body: <p>How do I programmatically switch to the <code>asp:CompleteWizardStep</code> step in the <code>OnCreatingUser</code> event in the <code>asp:CreateUserWizard</code> control?</p>
  
  <p>ASP.NET web form</p>
  
  <pre><code>&lt;asp:CreateUserWizard ID="MyCreateUserWizard" runat="server" OnCreatingUser="MyCreateUserWizard_CreatingUser"&gt;
      &lt;WizardSteps&gt;
          &lt;asp:CreateUserWizardStep ID="CreateUserStep1" runat="server"&gt;
              &lt;!-- code here --&gt;
          &lt;/asp:CreateUserWizardStep&gt;
          &lt;asp:CompleteWizardStep ID="CompleteWizardStep" runat="server"&gt;
              &lt;!-- code here --&gt;
          &lt;/asp:CompleteWizardStep&gt;
      &lt;/WizardSteps&gt;
  &lt;/asp:CreatedWizardStep&gt;
  </code></pre>
  
  <p>Code behind</p>
  
  <pre><code>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
  
  }
  </code></pre>