在剃须刀中使用ScriptManager?
问题描述:
必须是一个简单的问题,但我一生无法解决如何在我的视图中包括脚本管理器. <asp:ScriptManager />
不起作用.有人知道吗?
Must be a simple question, but I cannot for the life of me figure out how to include a script manager in my view. <asp:ScriptManager />
doesn't work. Anyone know?
答
ScriptManager是特定于Webforms的构造,因此,如果您使用的是MVC,您将(也不应)使用它.如果您想要一些可以移植某些功能的东西,可以查看 http://mvcscriptmanager.codeplex.com/脚本管理器转换为MVC.
ScriptManager is a webforms specific construct, so if you are using MVC, you won't (and shouldn't) be able to use it. You can look at http://mvcscriptmanager.codeplex.com/ if you want something that ports some of the features of the scriptmanager to MVC.