找不到MVC 3 HTML.BeginForm表达式重载 [英] Can't find the MVC 3 Html.BeginForm Expression overload
问题描述
在MVC3(剃刀)网络应用程序中,我想将表达式语法用于begin形式,例如. @ Html.BeginForm(c => c.ActionName(null)).但是,我看不到带有表达式的重载,并且在尝试时页面会引发错误.
In an MVC3 (razor) web app, I want to use the expression syntax for begin form, ex. @Html.BeginForm(c => c.ActionName(null)). However, I don't see an overload that takes an expression and the page throws an error when I try it.
我忘记了一步吗?我是否需要包括其他名称空间或某些第三方资源?我正在使用MvcContrib.FluentHtml,但我也看不到它.
Am I forgetting a step? Do I need to include an additional namespace, or some 3rd party resource? I'm using MvcContrib.FluentHtml, but I don't see it in there either.
推荐答案
BeginForm
的lambda重载是ASP.NET MVC Futures的一部分,对于MVC 3可以在此处下载:
The lambda overload of BeginForm
is part of ASP.NET MVC Futures, which for MVC 3 can be downloaded here: http://aspnet.codeplex.com/releases/view/58781
这篇关于找不到MVC 3 HTML.BeginForm表达式重载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!