Displaying a Wizard : Wizard « ASP.net Controls « ASP.NET Tutorial

ActiveStep:                 get the active WizardStep control.

ActiveStepIndex:            set or get the index of the active WizardStep control.

CancelDestinationPageUrl:   URL when clicking Cancel button.

DisplayCancelButton:        hide or display the Cancel button.

DisplaySideBar:             hide or display the Wizard control's sidebar. 

FinishDestinationPageUrl:   URL when clicking the Finish button.

HeaderText:                 header text that appears at the top of the Wizard control.

WizardSteps:                get the WizardStep controls.

The Wizard control supports the following templates:

FinishNavigationTemplate:    appearance of the navigation area of the finish step.

HeaderTemplate:              appearance of the header area.

SideBarTemplate:             appearance of the sidebar area.

StartNavigationTemplate:     appearance of the navigation area of the start step.

StepNavigationTemplate:      appearance of the navigation area of steps that are not start, finish, or complete steps.

The Wizard control also supports the following methods:

GetHistory():     return the collection of WizardStep controls that have been accessed.

GetStepType():    return the type of WizardStep at a particular index. 
                  Possible values are Auto, Complete, Finish, Start, and Step.

MoveTo():         move to a particular WizardStep.

The Wizard control also supports the following events:

ActiveStepChanged:        Called when a new WizardStep becomes the active step.

CancelButtonClick:        Called when the Cancel button is clicked.

FinishButtonClick:        Called when the Finish button is clicked.

NextButtonClick:          Called when the Next button is clicked.

PreviousButtonClick:      Called when the Previous button is clicked.

SideBarButtonClick:       Called when a sidebar button is clicked.

The WizardStep control supports the following properties:

AllowReturn:      prevent or allow a user to return to this step from a future step.

Name:             return the name of the WizardStep control.

StepType:         get or set the type of wizard step. 
                  Possible values are Auto, Complete, Finish, Start, and Step.

Title:            get or set the title of the WizardStep. 
                  The title is displayed in the wizard sidebar.

Wizard:           get the Wizard control containing the WizardStep.

The WizardStep also supports the following two events:

Activate:        Raised when a WizardStep becomes active.

Deactivate:      Raised when another WizardStep becomes active.

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<script runat="server">

    protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        lblSSNResult.Text = txtSSN.Text;
        lblPhoneResult.Text = txtPhone.Text;
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Show Wizard</title>
    <form id="form1" runat="server">

        HeaderText="Product Survey"
        <asp:WizardStep ID="WizardStep1" Title="Introduction">
        Please complete our survey so that we can improve our
        <asp:WizardStep ID="WizardStep2" Title="Step 1">
            Text="Social Security Number:"
            Runat="server" />
        <br />
            Runat="server" />
        <asp:WizardStep ID="WizardStep3" Title="Step 2" StepType="Finish">
            Text="Phone Number:"
            Runat="server" />
        <br />
            Runat="server" />
        <asp:WizardStep ID="WizardStep4" Title="Summary" StepType="Complete">
        Social Security Number:
            Runat="server" />
        <br /><br />
        Phone Number:
            Runat="server" />


3.29.1.Displaying a Wizard
3.29.2.A simple Wizard control (C#)
3.29.3.A simple Wizard control (VB)
3.29.4.Wizard and its steps (C#)
3.29.6.Custom wizard navigation
3.29.7.Custom wizard
3.29.8.Help Example Wizard
3.29.9.Wizard template