FilteredTextBoxExtender not triggering.... RRS feed

  • Question

  • User944339287 posted

    Hi guys, I did everything correct and its not showing me any error. I just want to allow user to enter numbers but its allowing all the characters.
    I using framework 2.0 here is my source

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TextBox1" FilterType="Numbers">
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

    Thursday, October 31, 2013 3:08 AM

All replies

  • User1079421601 posted

    Try like following

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
     <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
        TargetControlID="TextBox1" />

    For more information visit:

    Thursday, October 31, 2013 3:15 AM
  • User944339287 posted

    Hi mahedee,

    Problem still persisted. 

    Meanwhile, i have added the following code in web.config as well

    <add tagPrefix="cc1" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>

    Thursday, October 31, 2013 4:00 AM
  • User555306248 posted

    Please reference to this video tutorial.  http://www.asp.net/learn/ajax-videos/video-92.aspx

    Friday, November 1, 2013 12:13 AM