<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="BasicWizard" %>
Untitled Page
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;
using System.Text;
public partial class BasicWizard : System.Web.UI.Page
{
protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("You chose:
");
sb.Append("Programming Language: ");
sb.Append(lstLanguage.Text);
sb.Append("
Total Employees: ");
sb.Append(txtEmpCount.Text);
sb.Append("
Total Locations: ");
sb.Append(txtLocCount.Text);
sb.Append("
Licenses Required: ");
foreach (ListItem item in lstTools.Items)
{
if (item.Selected)
{
sb.Append(item.Text);
sb.Append(" ");
}
}
sb.Append("");
lblSummary.Text = sb.ToString();
}
}