Asp Control ASP.Net

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>



    Wizard Demo


    
    

                    Height="200px" Width="400px" OnFinishButtonClick="Wizard1_FinishButtonClick" OnNextButtonClick="Wizard1_NextButtonClick">
            
                
                    What is your eating preference?
                    
                    
                        Meat Eater
                        Vegetarian
                    
                
                
                    Please select main course:
                    
                    
                        Chicken
                        Fish
                        Steak
                    
                
                
                    Please select main course:
                    
                    
                        Bread
                        Salad
                        Veggie Tray
                    
                
                
                    Please select beverage:
                    
                    
                        Coffee
                        Water
                        Wine
                    
                
            

        
    
    

    


File: Default.aspx.cs
using System;
using System.Data;
using System.Configuration;
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 _Default : System.Web.UI.Page 
{
    protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {
        if (Wizard1.ActiveStepIndex == 0)
        {
            if (RadioButtonList1.SelectedValue == "Vegetarian")
            {
                Wizard1.ActiveStepIndex = 2;
            }
        }
        if (Wizard1.ActiveStepIndex == 1)
        {
            Wizard1.ActiveStepIndex = 3;
        }
    }
    protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
        if (RadioButtonList1.SelectedValue == "Vegetarian")
        {
            Response.Write(
                "Your meal will be " +
                RadioButtonList3.SelectedValue +
                " and " +
                RadioButtonList4.SelectedValue);
        }
        else
        {
            Response.Write(
               "Your meal will be " +
               RadioButtonList2.SelectedValue +
               " and " +
               RadioButtonList4.SelectedValue);
        }
    }
}