FilteredTextBoxExtender FilterType Numbers in asp.net ajax

FilteredTextBoxExtender FilterType Numbers
UsingFilterTypeNumbers.aspx

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

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

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = "Your Area Code: " + TextBox1.Text;
    }    
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Ajax FilteredTextBoxExtender FilterType Numbers</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Crimson; font-style:italic;">Ajax FilteredTextBoxExtender Example: Using FilterType Numbers</h2>
        <hr width="625" align="left" color="RosyBrown" />
        <asp:ScriptManager 
            ID="ScriptManager1"
            runat="server"
            >
        </asp:ScriptManager>
        <cc1:FilteredTextBoxExtender 
            ID="FilteredTextBoxExtender1"
            runat="server"
            TargetControlID="TextBox1"
            FilterType="Numbers"
            FilterMode="ValidChars"
            >
        </cc1:FilteredTextBoxExtender>
        <br />
        <asp:Label 
            ID="Label1"
            runat="server"
            ForeColor="SkyBlue"
            Height="70"
            Font-Size="X-Large"
            Font-Bold="true"
            >
        </asp:Label>
        <br />
        <asp:Label 
            ID="Label2" 
            runat="server"
            Font-Italic="true"
            ForeColor="SeaGreen"
            Font-Names="Comic Sans MS"
            Font-Size="Large"
            Text="Area Code(Only Numbers)"
            >
        </asp:Label>
        <asp:TextBox 
            ID="TextBox1"
            runat="server"
            Font-Bold="true"
            Font-Names="Comic Sans MS"
            BackColor="Snow"
            ForeColor="SeaGreen"
            Font-Size="Medium"
            >
        </asp:TextBox>
        <br /><br />
        <asp:Button 
            ID="Button1"
            runat="server"
            ForeColor="DodgerBlue"
            OnClick="Button1_Click"
            Text="Submit Area Code"
            Font-Bold="true"
            Height="40"
            />
    </div>
    </form>
</body>
</html>
More asp.net ajax examples