locked
ajax non of the controls works RRS feed

  • Question

  • User-1769741533 posted

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

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>     <asp:UpdatePanel ID="UpdatePanel1" runat="server">     <ContentTemplate>

      <asp:TextBox ID="TextBox1_cmbOpen" runat="server" Width="155px" Font-Size="Large"></asp:TextBox>

          <asp:MaskedEditExtender       runat="server"     TargetControlID="TextBox1_cmbOpen"     Mask="9,999,999.99"     MessageValidatorTip="true"         MaskType="Number"     InputDirection="RightToLeft"     AcceptNegative="Left"     DisplayMoney="Left"     ErrorTooltipEnabled="True"/>

     </ContentTemplate>      </asp:UpdatePanel>    

    JavaScript runtime error: Unable to get property 'UI' of undefined or null reference

    Thursday, July 31, 2014 4:09 PM

Answers

  • User2103319870 posted

    sury77

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

    Change the asp script manager to ToolKitScriptmanager and  set the CombineScripts property to false.

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="false">
                </asp:ToolkitScriptManager>

    Complete Code:

        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ScriptMode="Release"
            CombineScripts="false" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:TextBox ID="TextBox1_cmbOpen" runat="server" Width="155px" Font-Size="Large"></asp:TextBox>
                <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TextBox1_cmbOpen"
                    Mask="9,999,999.99" MessageValidatorTip="true" MaskType="Number" InputDirection="RightToLeft"
                    AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True" />
            </ContentTemplate>
        </asp:UpdatePanel>

    Source URL :Solution to JavaScript runtime error: Unable to get property 'UI' of undefined or null reference

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 31, 2014 4:38 PM