【发布时间】:2010-12-17 22:13:14
【问题描述】:
我有一个 ASP.NET MVC 1 应用程序并使用 Visual Web Developer Express。我无法让 Html.RenderAction("Controller","Action") 在我的 MasterPage 上工作。 (Site.Master) 在共享文件夹中。
VWD 说此处无法识别“Html”。
我采取了以下步骤来实现 Html.RenderAction("Controller","Action") 方法。
已下载 Micrsoft.Web.Mvc.dll
更新了 web.config,引用了 Micrsoft.Web.Mvc.dll '
我在我的项目中手动添加了对 Micrsoft.Web.Mvc.dll 的引用。
我正在关注这本书:Steven Sanderson 的 Pro ASP.NET MVC Framework,并下载了他涵盖该主题的示例文件(第 4 - 6 章),他的示例文件给了我同样的错误?
请帮忙!
谢谢! 昆汀
【问题讨论】:
-
您使用的是什么版本的 VWD?
-
;在我的文章视图中有效,但在 MasterPage 中无效?
标签: asp.net-mvc