How to use CalendarExtender in asp.net ajax

Ajax CalendarExtender - How to use CalendarExtender in asp.net ajax
UsingCalendarExtender.aspx
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Drawing" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            TextBox1.ForeColor = Color.LightGoldenrodYellow;
            TextBox1.ForeColor = Color.DeepPink;
            TextBox1.Font.Bold = true;
            TextBox1.Font.Size = FontUnit.Medium;
            TextBox1.Font.Name = "Comic Sans MS";
        }
    }    
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Ajax CalendarExtender - How to use CalendarExtender in asp.net ajax</title>
    <style type="text/css">
        .CalendarCSS
        {
            background-color:OrangeRed;
            color:Snow;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:DarkBlue; font-style:italic;">Ajax Control Toolkit Example: Using CalendarExtender</h2>
        <hr width="500" align="left" color="CornFlowerBlue" />
        <asp:ScriptManager 
            ID="ScriptManager1"
            runat="server"
            >
        </asp:ScriptManager>
        <cc1:CalendarExtender 
            ID="CalendarExtender1"
            runat="server"
            TargetControlID="TextBox1"  
            CssClass="CalendarCSS"
            >
        </cc1:CalendarExtender>
        <asp:Label 
            ID="Label1" 
            runat="server"
            ForeColor="DodgerBlue"
            Font-Italic="true"
            Font-Names="Comic Sans MS"
            Font-Size="Large"
            Text="Arrival Date: "
            Font-Underline="true"
            >
        </asp:Label>
        <asp:TextBox 
            ID="TextBox1"
            runat="server"
            >
        </asp:TextBox>
    </div>
    </form>
</body>
</html>
Related asp.net example