Not a Registered Script Control error

4 posts, 0 answers
  1. Laurie
    Laurie avatar
    141 posts
    Member since:
    Feb 2007

    Posted 14 Jan 2015 Link to this post

    I am getting the error:

    Script control '' is not a registered script control.
    Script controls must be registered using RegisterScriptControl() before
    calling RegisterScriptDescriptors().
    Parameter name: scriptControl

    with the following code:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Test_Default2" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"></telerik:RadScriptManager>
            <telerik:RadAjaxManager runat="server" ID="ramRoot" Visible="false">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="Timer1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pMessage" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="pMessage">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pMessage" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnClose">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pMessage" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <asp:HiddenField runat="server" ID="hfMessageHidden" Value="0" />
                <asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick" Enabled="true"></asp:Timer>
            <asp:Panel runat="server" ID="pMessage" CssClass="pageMessagePanel">
                <asp:LinkButton runat="server" ID="btnClose" class="close" data-dismiss="alert" aria-hidden="true" Text="x" />
                <asp:Label runat="server" ID="lMessage">
                </asp:Label>
            </asp:Panel>
        <div>
        <p>Hello</p>
        </div>
        </form>

    The codebehind methods have their contents commented out, so really what you see here is what you get.  When I remove the <asp:Panel tag, the error goes away.  But I want the <asp:Panel tag.  Anyone have any idea what might be going on?

    Thanks!

    Laurie
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 16 Jan 2015 Link to this post

    Hi Laurie,

    Can you please try replacing the RadScriptMnager with regular asp ScriptManager and see if this makes any difference? Also please remove the "visible" property from the RadAjaxManager and verify if this helps.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Laurie
    Laurie avatar
    141 posts
    Member since:
    Feb 2007

    Posted 16 Jan 2015 in reply to Maria Ilieva Link to this post

    Doh!  Removing the visible property from the RadAjaxManager worked.  (Not sure how that got there!) Didn't need to replace the RadScriptManager with asp ScriptManager.  Many thanks!
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Jan 2015 Link to this post

    Hello,

    I'm glad that the provided solution works for you.

    Do not hesitate to contact us back and to open new threads in case additional assistance is needed.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top