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

Multiple Script Managers

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kris
Top achievements
Rank 1
Kris asked on 02 Jul 2008, 05:43 PM
I have a user control that contains some of the Rad controls and therefore requires a ScriptManager object.  I use this control on a number of pages throughout my application.  About half of the pages already contain a ScriptManager to support other Rad controls.  The other half doesn't require any Rad controls so obviously I didn't add a ScriptManager.  Now with this user control I'm having trouble on the pages that already have a ScriptManager because only one per page is supported.

What is the best method to handle this?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 03 Jul 2008, 07:56 AM
Hello Kris,

You can create the ScriptManger dynamically if ScriptManger.GetCurrent(Page) is null.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Kris
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or