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

[Solved] scriptmanager error urgent

1 Answer 303 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary Shannon
Top achievements
Rank 1
Gary Shannon asked on 19 May 2008, 06:27 PM
Hello All

i am using the radgrid to display the data from the database and i receive the following error message

  

Server Error in '/' Application.

The control with ID 'rgAutoshipLeft' 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 'rgAutoshipLeft' 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 'rgAutoshipLeft' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
   Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) +175
   Telerik.Web.UI.RadCompositeDataBoundControl.get_ScriptManager() +34
   Telerik.Web.UI.RadCompositeDataBoundControl.RegisterScriptControl() +25
   Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) +40
   Telerik.Web.UI.RadGrid.OnPreRender(EventArgs e) +41
   System.Web.UI.Control.PreRenderRecursiveInternal() +148
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Control.PreRenderRecursiveInternal() +233
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4421


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2008, 05:08 AM
Hi Gary Shannon,

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:

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

Go through the following help article for more details.
Troubleshooting

Thanks
Shinu.
Tags
Grid
Asked by
Gary Shannon
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or