Wizard
Previous | Home | Next |
The wizard control is a more glamorous version of the multiview control. It also supports showing one of several views at a time. Basically a wizard interface will be used when we require a user to input a lot of data categorize in various steps. Wizard enables us to take the data from the user a series of multiple steps. This sample demonstrates a basic Wizard control that collects a single piece of information on the first WizardStep and displays that information to the user on the Complete WizardStep for confirmation. Instead of displaying this information to the user, you could write the information to a database or other collection store.
Wizard ************************************************************************* <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Wizard.aspx.cs" Inherits="_Default" %>************************************************************************ .CS Code *************************************************************************** using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void TextBox1_TextChanged(object sender, EventArgs e) { } protected void Wizard1_FinishButtonClick1(object sender, WizardNavigationEventArgs e) { Label3.Visible = true; Label4.Visible = true; Label5.Visible = true; Label3.Text = TextBox1.Text.ToString(); Label4.Text = TextBox2.Text.ToString(); Label5.Text = TextBox3.Text.ToString(); } }Wizard
Previous | Home | Next |