ASP.NET Whidbey Overview
page 4 of 14
by Steven Smith
Average Rating: 
Views (Total / Last 10 Days): 56895/ 35

Wizard Control

A common requirement in data entry or registration form pages is to collect user data across a series of pages.  For instance, a bank account application might require personal information from one or more applications, business information, financial information, etc., each on separate forms.  Or an ecommerce application my collect information about billing address, shipping address, and payment on separate forms.  In ASP.NET 1.x, this can be done, but there is not built-in support for it, so a lot of code must be written to support updating the page state, or many separate forms must be written and state managed between them.  It's messy.

The Wizard web control is designed to make these scenarios easier.  The wizard control allows the developer to create templated "steps" within the control, and manages the state throughout the steps.  Validation within individual steps can be completed without incomplete steps' RequiredFieldValidators firing (as is a problem in 1.x).  Users can navigate forward, backward, or jump to a specific step within the wizard.

At design time, it's very easy to manipulate the Wizard and its step templates, as this screenshot demonstrates:

Wizard Control Design Time

Here's an example of a very simple Wizard control in action, using the March 2004 Preview build of VS2005:

<%@ page language="C#" %>

<script runat="server">

void Wizard1_FinishButtonClick (object sender, WizardNavigationEventArgs e)


Response.Write ("Finish clicked!");




<head runat="server">

<title>Untitled Page</title>



<form id="form1" runat="server">


<asp:Wizard ID="Wizard1" Runat="server" SideBarEnabled="true" OnFinishButtonClick="Wizard1_FinishButtonClick">


<asp:WizardStep Runat="server" Title="Step 1">

This is content for STEP 1.


<asp:WizardStep Runat="server" Title="Step 2">

This is content for STEP 2.








View Entire Article

User Comments

Title: very good article   
Name: raja raja
Date: 2009-12-04 7:57:23 AM
very good and informative website.
Title: nice artical   
Name: abdulla hussein
Date: 2007-04-29 6:28:16 AM
I like it , it is very informative . thanks alot man

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-06-17 7:44:31 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search