找不到MVC 3 Html.BeginForm前pression超载 [英] Can't find the MVC 3 Html.BeginForm Expression overload
问题描述
在一个MVC3(剃刀)的Web应用程序,我想使用的形式开始,前前任pression语法。 @ Html.BeginForm(C => c.ActionName(空))。不过,我没有看到一个重载接受一个前pression,当我尝试在页面抛出一个错误。
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
的拉姆达超载是ASP.NET MVC期货,这对于MVC 3可以成为其中的一部分在这里下载: HTTP://aspnet.$c$cplex.com/releases/view/ 58781
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前pression超载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!