CalendarExtender PopupButtonID in asp.net ajax

Ajax CalendarExtender PopupButtonID - how to use image
CalendarExtenderPopupButtonID.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>

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

<!DOCTYPE html>
<script runat="server">
    
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Ajax CalendarExtender PopupButtonID - how to use image</title>
    <style type="text/css">
        .CalendarStyle 
        {
            background-color:DarkSlateGray;
            color:Snow;
            border:solid 2px DarkBlue;
            }
        .ajax__calendar_days
        {
            background-color:SlateGray;
            } 
        .ajax__calendar_header
        {
            background-color:BurlyWood;
            color:Snow;
            }                 
        .ajax__calendar_footer
        {
            background-color:Peru;
            color:Snow;
            }            
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:OrangeRed; font-style:italic;">Ajax CalendarExtender Example: How To Use PopupButtonID</h2>
        <hr width="550" align="left" color="Orange" />
        <asp:ScriptManager 
            ID="ScriptManager1"
            runat="server"
            >
        </asp:ScriptManager>
        <cc1:CalendarExtender 
            ID="CalendarExtendar1"
            runat="server"
            TargetControlID="TextBox1"
            PopupPosition="BottomLeft"
            PopupButtonID="Image1"
            CssClass="CalendarStyle"
            >
        </cc1:CalendarExtender>
        <br />
        <table border="0">
            <tr valign="top">
                <td width="100"></td>
                <td>
                    <asp:TextBox 
                        ID="TextBox1"
                        runat="server"
                        Width="150"
                        Font-Bold="true"
                        ForeColor="Crimson"
                        Font-Names="Comic Sans MS"
                        >
                    </asp:TextBox>
                </td>
                <td>
                    <asp:Image 
                        ID="Image1"
                        runat="server"
                        ImageUrl="~/Images/Calendar.gif"
                        />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
Related asp.net ajax examples