Asp Control ASP.Net

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



    Checkout MultiView Navigation


    
    

        
            
                Please enter your contact information:
                
                    
                        
                        
                    
                    
                        
                        
                    
                    
                        
                        
                    
                
First Name:
                            
                                                            ControlToValidate="txtFirstName">
                            
                        
Last name:
                            
                                                            ControlToValidate="txtLastName">
                            
                        
Email:
                        

                            
                                                            ControlToValidate="txtEmail">
                            
                        

                
                
            
                
                    Please select a shipping method:
                    
                                            Checked="True" />
                    
                    
                    
                    
                    
                
                
                
                
                
                
                    Please enter your credit card information:
                    
                    
                        
                            
                            
                            
                        
                        
                            
                            
                        
                    

                                        Visa
                                        MasterCard
                                        American Express
                                    
                            
Card Number:
                            
Expiration Date:
                                
                                    January
                                    February
                                    March
                                    April
                                    May
                                    June
                                    July
                                    August
                                    September
                                    October
                                    November
                                    December
                                 
                                 
                            

                    
                    
                    
            
                Here is the data your entered:
                
            
                
                Navigation Menu
            
            
                
        View 1: Contact Info
                
        View 2: Shipping Method
                
        View 3: Credit Card Info
        

        
        
    


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 Checkout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.DisplayStatus();
        if (!IsPostBack)
        {
            int year = DateTime.Now.Year;
            for (; year < DateTime.Now.Year + 6; year++)
                ddlExpirationYear.Items.Add(year.ToString());
        }
    }
    protected void btnFinish_Click(object sender, EventArgs e)
    {
        mvCheckout.ActiveViewIndex = 3;
        this.DisplayMessage();
    }
    private void DisplayMessage()
    {
        string shipVia = "";
        if (rdoUPSGround.Checked)
            shipVia = "UPSG";
        else if (rdoUPS2Day.Checked)
            shipVia = "UPS2D";
        else if (rdoFedEx.Checked)
            shipVia = "FEDEX";
        string message =
            "Contact info\n" +
            "    First name: " + txtFirstName.Text + "\n" +
            "    Last name: " + txtLastName.Text + "\n" +
            "    Email: " + txtEmail.Text + "\n" +
            "Shipping method\n" +
            "    Ship via: " + shipVia + "\n" +
            "Credit card info\n" +
            "    Type: " + listCardType.SelectedValue + "\n" +
            "    Number: " + txtCardNumber.Text + "\n" +
            "    Expiration date: " + ddlExpirationMonth.SelectedValue + "/"
                                    + ddlExpirationYear.SelectedValue;
        txtMessage.Text = message;
    }
    protected void mvCheckout_ActiveViewChanged(object sender, EventArgs e)
    {
        this.DisplayStatus();
    }
    private void DisplayStatus()
    {
        int viewNumber = mvCheckout.ActiveViewIndex + 1;
        lblStatus.Text = "View " + viewNumber + " of " + mvCheckout.Views.Count;
    }
}