This is a migrated thread and some comments may be shown as answers.

Not a Registered Script Control error

3 Answers 46 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Laurie
Top achievements
Rank 2
Laurie asked on 14 Jan 2015, 10:37 PM
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

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 16 Jan 2015, 07:56 AM
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.

 
0
Laurie
Top achievements
Rank 2
answered on 16 Jan 2015, 05:58 PM
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!
0
Maria Ilieva
Telerik team
answered on 19 Jan 2015, 07:19 AM
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.

 
Tags
Ajax
Asked by
Laurie
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Laurie
Top achievements
Rank 2
Share this question
or