Access ToolKitScriptManager / ScriptManager from a user control

I am writing a special class library that contains custom controls (and not user controls). I have built-in javascript files that need to be registered on the page.

Now, since this is a class library, how do I determine whether to use ToolKitScriptManager or ScriptManager?

Page.ClientScript is a ClientScriptManager, but can I do it if a new ToolKitScriptManager appears on the page?

+3
source share
1 answer

, , , ScriptManager, ScriptManager.GetCurrent(). null, , ( , ), ToolKitScriptManager, ScriptManager.

+2

Source: https://habr.com/ru/post/1758565/


All Articles