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

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

1 Answer 1390 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arunraj
Top achievements
Rank 1
Arunraj asked on 26 Mar 2009, 11:32 PM
I have downloaded the trial version of ASP.NET AJAX UI Controls (Version 2009.1.311.35). I believe this is .net 3.5 version.
I use VS2008 .NET 3.5.

I created a web form with just the Rad Textbox in it. with no code.

I am getting the following error: I dont really see any solutions to fix this issue.

 

Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The control with ID 'RadTextBox1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The control with ID 'RadTextBox1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
   Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) +199
   Telerik.Web.UI.RadWebControl.get_ScriptManager() +46
   Telerik.Web.UI.RadInputControl.RegisterScriptControl() +31
   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +47
   Telerik.Web.UI.RadInputControl.OnPreRender(EventArgs e) +37
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Mar 2009, 04:11 AM
Hi Arunraj,

This error occurs when you have added a control from RadControls for ASP.NET AJAX to a page which does not contain a ScriptManager control. To resolve that error please add a ScriptManager control to your page:

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

For further details about the ScriptManager control you can check http://www.asp.net/ajax/

Also you can add RadScriptManager instead of ScripManager available in the Microsoft Ajax Extensions suite. The purpose of RadScriptManager is to replace the regular asp ScriptManager and allows to combine the embedded script resources for RadControls for ASP.NET AJAX (while at the same time has the same capabilities of the MS ScriptManager control). You can find more information about RadScriptManager by going to the link below.
RadScriptManager

Thanks,
Shinu.
Tags
General Discussions
Asked by
Arunraj
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or