<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="CustomWizard" %>
Custom Wizard
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 CustomWizard : System.Web.UI.Page
{
public object GetStepImage(string title)
{
return "images/sidebar_" + title + ".gif";
}
public object GetSelectedStepImage(string title)
{
return "images/sidebar_" + title + "_selected.gif";
}
protected void myWizard_ActiveStepChanged(object sender, EventArgs e)
{
}
protected void myWizard_NextButtonClick(object sender, WizardNavigationEventArgs e)
{
}
protected void myWizard_PreviousButtonClick(object sender, WizardNavigationEventArgs e)
{
}
protected void myWizard_FinishButtonClick(object sender, WizardNavigationEventArgs e)
{
Label labConfirm = (Label)myWizard.FindControl("labConfirmation");
labConfirm.Text = "Order has been processed for " + txtEmail.Text;
labConfirm.Text += "
Shipped via " + drpShipper.SelectedValue;
labConfirm.Text += "
Payment from " + drpPayment.SelectedValue;
}
protected void myWizard_SideBarButtonClick(object sender, WizardNavigationEventArgs e)
{
e.Cancel = true;
}
}