一个页面可以有多个ScriptManager吗?如果是的话,什么情况下需要?
最佳答案
MSDN说不,你不能有超过一个(强调我的):
A page can contain only one ScriptManager control in its hierarchy. To register services and scripts for nested pages, user controls, or components when the parent page already has a ScriptManager control, use the ScriptManagerProxy control. For more information, see Using the ASP.NET UpdatePanel Control with Master Pages
关于asp.net - 一个页面可以有多个ScriptManager吗?如果是的话,在什么条件下需要呢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3044844/