当我用<%= Html.Calendar() %> 时,就会出现一个错误c:\WorkSpace\NerdDinner\NerdDinner\Views\Home\Index.aspx(21): error CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Calendar' and no extension method 'Calendar' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
请问如何解决呢?????????
htmlhelper里没有Calendar,你这个大概是别的项目里别人扩展的吧。你没把扩展部分的代码弄过来,直接就调用,基本就这结果。。。