我正在尝试为HtmlHelper类在C#中创建一个扩展方法。我已经阅读了它的MSDN页面,并且我确信我引用的名称空间是正确的。我想知道我到底做错了什么。using System;using System.Linq;using System.Web.Mvc//It's as if 'helper' doesn't have
我在我的asp.net mvc应用程序中使用了spark视图引擎。在我的aspx页面中,我可以成功地使用Html.Actionlink,但当我尝试在spark文件中使用它时,它不会出现在智能感知中,而当我无论如何都要尝试运行它时,我得到:
动态视图编译失败。Documents\Visual Studio 2008\Projects\ChurchMVC\ChurchMVC\Views\Home\Index.spark(73,25):错误CS1061:'System.Web.Mvc
我一直在学习本教程,但是我遇到了错误"System.Web.Mvc.HtmlHelper not contain a definition for EnumDropDownListFor“。return htmlHelper.DropDownListFor( items }@Html.EnumDropDownListFor(model => model.Code.Codes)