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

Error with multile Script Manager

2 Answers 247 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Santhosh
Top achievements
Rank 1
Santhosh asked on 12 Mar 2009, 01:07 PM
Hi,

I am developing multiple sharepoint web parts by loading web usercontrols on it.

my problem when i add two web parts i am getting the following error

 

Server Error in '/' Application.

Only one instance of a ScriptManager can be added to the page.

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: Only one instance of a ScriptManager can be added to the page.

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: Only one instance of a ScriptManager can be added to the page.]
   System.Web.UI.ScriptManager.OnInit(EventArgs e) +426
   Telerik.Web.UI.RadScriptManager.OnInit(EventArgs e) +78
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834


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

What to do?

Can anybody help me

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Mar 2009, 01:27 PM
Hello Santhosh,

Only one instance of the ScriptManager control can be added to the page. The page can include the control directly, or indirectly inside a nested component such as a user control, content page for a master page, or nested master page. In cases where a ScriptManager control is already on the page but a nested or parent component needs additional features of the ScriptManager control, the component can include a ScriptManagerProxy control. For example, the ScriptManagerProxy control enables you to add scripts and services that are specific to nested components.

For more information about ScriptManager please refer to the following link:
Script Manager control Overview

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Santhosh
Top achievements
Rank 1
answered on 13 Mar 2009, 04:07 PM
thank you Mr. Admin.

Pls find my remaining threads for which i has waiting for the repsponse.

Thank you again

regards,
santhosh
Tags
General Discussions
Asked by
Santhosh
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Santhosh
Top achievements
Rank 1
Share this question
or