asp.net - How to use MaskedEditExtender mask type time

Ajax MaskedEditExtender MaskType Time
UsingMaskTypeTime.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Drawing" %>

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

<!DOCTYPE html>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            TextBox1.ForeColor = Color.OliveDrab;
            TextBox1.BackColor = Color.Snow;
            TextBox1.Font.Name = "Verdana";
            TextBox1.Font.Size = FontUnit.Large;
            TextBox1.Height = 35;
            Label1.ForeColor = Color.OrangeRed;
            Label1.Font.Size = FontUnit.XLarge;
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = "Meeting Time ";
        Label1.Text += Convert.ToDateTime(TextBox1.Text).ToShortTimeString();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Ajax MaskedEditExtender MaskType Time - How to use</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:DeepPink; font-style:italic;">Ajax MaskedEditValidator Example: MaskType Time</h2>
        <hr width="475" align="left" color="Pink" />
        <asp:ScriptManager 
            ID="ScriptManager1"
            runat="server"
            >
        </asp:ScriptManager>
        <br /><br />
        <asp:Label 
            ID="Label1"
            runat="server"
            >
        </asp:Label>
        <br /><br />
        <asp:Label 
            ID="Label2"
            runat="server"
            Text="Meeting Time [99:99:99][hh/mm/ss] "
            ForeColor="Olive"
            Font-Bold="true"
            >
        </asp:Label>
        <asp:TextBox 
            ID="TextBox1"
            runat="server"
            >
        </asp:TextBox>
        <cc1:MaskedEditExtender 
            ID="MaskedEditExtender1"
            runat="server"
            TargetControlID="TextBox1"
            Mask="99:99:99"
            MaskType="Time"
            MessageValidatorTip="true"
            >
        </cc1:MaskedEditExtender>
        <cc1:MaskedEditValidator 
            ID="MaskedEditValidator1"
            runat="server"
            ControlToValidate="TextBox1"
            ControlExtender="MaskedEditExtender1"
            IsValidEmpty="false"
            EmptyValueMessage="Input time"
            InvalidValueMessage="inputted time not valid"
            >
        </cc1:MaskedEditValidator>
        <br /><br />
        <asp:Button 
            ID="Button1"
            runat="server"
            Text="Submit Meeting Time"            
            Font-Bold="true"
            ForeColor="RosyBrown"
            OnClick="Button1_Click"
            Height="40"
            />
    </div>
    </form>
</body>
</html>
Related asp.net ajax examples