New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Control with an ID Requires ScriptManager on the Page Error Occurs

Environment

Product Progress® Telerik® UI for ASP.NET AJAX

Description

When working with Telerik UI for ASP.NET AJAX, I get an error that the control with ID [ControlID] requires a ScriptManager on the page and that the ScriptManager must appear before any controls that need it.

Error Message

The control with ID '[ControlID]' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

Cause

The possible cause for this error is that you have added a Telerik UI for ASP.NET AJAX control to a page that does not contain a ScriptManager control.

Solution

To solve this issue, add a ScriptManager control to your page by using the following snippet.

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

If you are using master pages, you can add the ScriptManager there. The ScriptManager must precede all controls from the Telerik UI for ASP.NET AJAX suite. For further details on the ScriptManager, refer to the https://msdn.microsoft.com/en-us/library/bb398863(v=vs.100).aspx article.

In this article