在剃须刀中使用ScriptManager? [英] Using a ScriptManager in razor?

查看:76
本文介绍了在剃须刀中使用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.

这篇关于在剃须刀中使用ScriptManager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆