ScriptManager and CompareValidator issue RRS feed

  • Question

  • User636361607 posted


      Do you know why the validation control does not work when I add  the asp:ScriptManager  tag? I use VS 2013 and the latest ajax installed using NuGet.

    <asp:ScriptManager ID="ScriptManager1" runat="server">


    <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox1" Operator="DataTypeCheck" Type="Integer" >Enter numeric values</asp:CompareValidator>

    <asp:Button ID="Button1" runat="server" Text="Button" />

    I saw the ToolkitScriptManager is not availabe now?


    Thursday, September 15, 2016 2:17 PM


  • User347430248 posted

    Hi Jayanpal,

    in the newest version of Ajex you can use ToolScript Manager like below.

    <AjaxToolkit:ToolkitScriptManager ID="smContent" runat="server">

    instead of

    <asp:ScriptManager ID="smContent" runat="server">

    first if you are using an older version of Ajex Tool Kit and recently you installed a new one using Nuget then you need to do some changes.

    Upgrade your project to AjaxControlToolkit v15.1

    Asp.Net 4.0 ScriptManager Improvments



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 16, 2016 10:19 AM