---
title: "Wizard Control in ASP.Net"  
description: "This control enables us to create a wizard based interface for a user. Typically a wizard interface will be used when we require a user to input a lot"  
author: "Pushpendra Singh"  
published: 2010-10-22  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/177/wizard-control-in-asp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 2 minutes  

---

# Wizard Control in ASP.Net

This [control](https://yourviews.mindstick.com/view/83439/bipartisan-gun-control-bill-passed-in-us-after-decades) enables us to create a [wizard](https://answers.mindstick.com/qa/34027/which-sporstman-is-known-as-the-wizard-of-hockey) based [interface](https://www.mindstick.com/articles/12036/interface-in-c-sharp) for a user. Typically a wizard interface will be used when we require a user to [input](https://www.mindstick.com/forum/161440/what-is-first-input-delay-fid) a lot of data. Wizard enables us to take the data from the user in [series](https://answers.mindstick.com/qa/104558/what-is-the-nascar-cup-series) of [multiple](https://www.mindstick.com/blog/12797/iowa-is-expected-to-see-heavy-growth-in-multiple-sectors) steps. Wizard allows us only a serial [navigation](https://www.mindstick.com/blog/62/different-navigation-in-asp-dot-net) between steps i.e. in a tabbed interface a user can jump between tabs (if not [controlled](https://yourviews.mindstick.com/view/81837/has-pakistan-controlled-corona-pandemic)) but in a wizard the user can go either to the [previous](https://yourviews.mindstick.com/view/81421/unlock-2-0-is-just-like-previous-corona-lockdowns) or the next step.\

```
<asp:Wizard ID="Wizard1" runat="server"> <WizardSteps><asp:WizardStep runat="server" title="Step 1"></asp:WizardStep><asp:WizardStep runat="server" title="Step 2"></asp:WizardStep> </WizardSteps></asp:Wizard>
```

\

![Wizard Control in ASP.Net](https://www.mindstick.com/mindstickarticle/d2707ea4-3836-4390-ab0b-670e12e6b2dc/images/0606ec7e-c783-4797-9405-a027b9629b76.png)

## WizardStep Properties -

· Title - The descriptive name of the step. This name is used for the text of the links in the sidebar.

· Allow Return - User can return on previous step. By selecting AllowReturn=true.

## Code:

```
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0"    onfinishbuttonclick="Wizard1_FinishButtonClick">     <WizardSteps>             <asp:WizardStep runat="server" StepType="Start" title="Step 1">                    You Are in First Step<br />                    <br />                    <br />                    Enter Your Name<br />                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>                    <br />              </asp:WizardStep>              <asp:WizardStep runat="server" title="Step 2">                    YOU ARE IN SECOND STEP<br />                    <br />              ur email id<asp:TextBox ID="TextBox3"  runat="server"></asp:TextBox>                    <br />                    <br />                </asp:WizardStep>              <asp:WizardStep runat="server" StepType="Finish" Title="Step3">                    You Are in Third Step<br />                    <br />                    <br />                    Password<br />                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>                    <br />                    confirm password<br />                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>                    <br />             </asp:WizardStep>         </WizardSteps>         <HeaderTemplate>                WIZARD EXAMPLE         </HeaderTemplate></asp:Wizard><asp:Label ID="Label1" runat="server"></asp:Label> protected void Wizard1_FinishButtonClick(object sender,  WizardNavigationEventArgs e)    {         Label1.Text = "Thank You your registation is complete";         Wizard1.Visible = false;     }
```

![Wizard Control in ASP.Net](https://www.mindstick.com/mindstickarticle/d2707ea4-3836-4390-ab0b-670e12e6b2dc/images/1daeed15-3f3e-4197-8fe4-787da05bdf4f.png)

![Wizard Control in ASP.Net](https://www.mindstick.com/mindstickarticle/d2707ea4-3836-4390-ab0b-670e12e6b2dc/images/84c4087c-1149-4b56-b794-9b75ca2bf0df.png)

Click next

![Wizard Control in ASP.Net](https://www.mindstick.com/mindstickarticle/d2707ea4-3836-4390-ab0b-670e12e6b2dc/images/8b9dbd79-5bda-46ce-a96f-fc51e6da0684.png)

[Click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) next

![Wizard Control in ASP.Net](https://www.mindstick.com/mindstickarticle/d2707ea4-3836-4390-ab0b-670e12e6b2dc/images/8e9c39d1-6985-4c25-bc4b-f8081359c990.png)

Click Finish

![Wizard Control in ASP.Net](https://www.mindstick.com/mindstickarticle/d2707ea4-3836-4390-ab0b-670e12e6b2dc/images/6e95bff8-dac1-4fe3-a076-e3bc98cdb20c.png)

---

Original Source: https://www.mindstick.com/articles/177/wizard-control-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
