Script control is not a registered script control

I have a page that uses CustomerDetails.ascx. It uses CM.ascx. Inside CM.ascx I use AJAX Data Controls GridView with ID="gdvRecommendation".

Sometimes when I browse to the page I get the following exception:

Script control 'gdvRecommendation' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

Parameter name: scriptControl

  1. My ScriptManager defined in the master page before the content place holder.
  2. This exception doesn't happened always.
  3. I use CustomerDetails.ascx user controls in other pages and it works great.

Can anyone explain me the problem and what can be the solution?

Edit: Here is the GridView usage in CM.ascx:

<td valign="top" style="height: 150px;">
            <div id="divCMMessage"></div>
            <div id='divRecommendation' style="width: 100%; display: inline; overflow: auto;">
                <ADC:GridView ID="gdvRecommendation" Width="100%" runat="server" CellSpacing="0" CellPadding="3" HorizontalAlign="Right" ShowHeader="false" RowDataBoundEvent="onRowDataBound_gdvRecommendation">
                    <RowStyle Height="20px" />
                    <EmptyDataTemplate>no recommendations</EmptyDataTemplate>
                    <EmptyDataRowStyle HorizontalAlign="Right" BorderWidth="0" />
                    <Columns>
                        <ADC:GridViewImageColumn DataImageUrlField="IndImageUrl" HeaderText="" ItemStyle-Width="25px" ItemStyle-HorizontalAlign="Center"></ADC:GridViewImageColumn>
                        <ADC:GridViewTemplateColumn HeaderText="">
                            <ItemTemplate>
                                <asp:Label ID="TreatName" runat="server" Text=""></asp:Label>
                            </ItemTemplate>
                        </ADC:GridViewTemplateColumn>
                        <ADC:GridViewTemplateColumn HeaderText="">
                            <ItemTemplate>
                                <asp:Label ID="TreatType" runat="server" Text=""></asp:Label>
                            </ItemTemplate>
                        </ADC:GridViewTemplateColumn>
                    </Columns>
                </ADC:GridView>
            </div>
        </td>

The CustomerDetails.ascx is inside a MultiView (on MyPage.aspx).

Script control '' is not a registered script control. Script controls must , Script control '' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDe. Script control 'NavMenu1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

I faced same problem recently, above solution did not work for me. I was Hiding a control and later making it visible in PreRender based on some condition check. Hiding was working fine but when I was making it visible again, it was giving me the same error.

below is What worked for me is-

ScriptManager sm = ScriptManager.GetCurrent(Page);
sm.RegisterScriptControl(control_name);

Then making the control visible resolved my issue.

control_name.Visible = true;

Hopefully it may help someone facing this issue.

Script control 'grdActions' is not a registered script control. Script , Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Cancel The title field is required! "Script control 'TabPanel2' is not a registered script control. Script controls must be registered using RegisterScriptControl () before calling RegisterScriptDescriptors ().Parameter name: scriptControl" 4) after the above happens - if i close the site and then go back in - it correctly displays the tabpanal.

I had a similar issue with AJAX, and amusingly it occured only when in 'Debug' mode. In release mode, everything works fine. I have not reached to a conclusion on it yet. You may want to give it a shot.

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

In case of a RadAjaxPanel and loading UserControls, reading the answer from jhfelectric, I came up with the following solution (simple one): Disable AJAX on load (Me.EnableAJAX = False) and Enable it on PreRender. Because PreRender isnot called when removing a control, and is called after adding a control.

T133507 - ASPxCallbackPanel, Script controls must be registered using RegisterScriptControl before calling the RegisterScriptDescriptors" when using ajax:ComboBox inside  ASP.NET Forums / General ASP.NET / Getting Started / Script control '' is not a registered script control. Script control '' is not a registered script control. [Answered] RSS

You can get this Exception when you have a RadAjaxManager in a user control that itself is also inside a RadAjaxManager, either directly or as the child of another user control.

not a registered script control, Discussion of topic not a registered script control in Spread for ASP.NET (Web Forms) forum. Script control 'ControlName' is not a registered script control So you're here because you got the following error. Script control 'ControlName' is not a registered script control. Script controls must be registered using RegisterScriptControl () before calling RegisterScriptDescriptors ().

Script control 'ControlName' is not a registered script , Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl. I  Run the script Click the Start button, then in the Start Search box, type CMD but do NOT press Enter. In the Programs section of the displayed list, right-click the command > Run as Administrator and click Continue.

Script control 'RM1' is not a registered script control, Script control 'RM1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling  iTextSharp Error: Script control 'UpdateProgress1' is not a registered script control. Script controls must be registered using RegisterScriptControl () before calling RegisterScriptDescriptors ()

ScriptManager.RegisterScriptControl<TScriptControl>, The script control to register. Exceptions. ArgumentNullException. scriptControl is null . Remarks. This method is primarily for use by control  A script once belonging to the late actor Richard Burton is being auctioned, with the proceeds used to buy personal protective equipment (PPE) for health and care workers. Long before he was a

Comments
  • When are you getting this error message? When you try to add a new control or when you try to update the control content? Whether is the control placed inside the UpdatePanel?
  • @Venkatarajan Arthanari: I get this server exception when loading MyPage.aspx. I add this user control inside the ascx file directly. I don't add any update panel. Please see Edit.
  • Not sure whether the following link will help you but it looks like a solution to the same problem. nwije.blogspot.com/2011/04/…
  • @Venkatarajan Arthanari: The CustomerDetails.ascx is inside a MultiView (on MyPage.aspx).
  • @Venkatarajan Arthanari: I put the multiview decision logic on the OnPreRender event but I still get this exception..
  • Is there any way to do this on the Client?