<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="WizardForm" %>
Wizard Form
File: Default.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class WizardForm : System.Web.UI.Page
{
protected void Wizard1_ActiveStepChanged(object sender, EventArgs e)
{
if ( this.Wizard1.ActiveStepIndex==3 )
{
this.FinishLabel.Text =
"Your Dog's Name is " +
this.DogName.Text + "
";
this.FinishLabel.Text +=
"Your favorite color is " +
this.DropDownList1.SelectedItem.Text +
"
";
if (this.CheckBox1.Checked == true)
{
this.FinishLabel.Text +=
"And you are allergic to cats.";
}
else
{
this.FinishLabel.Text +=
"And you are not allergic to cats.";
}
}
}
}