找不到MVC 3 HTML.BeginForm表达式重载 [英] Can't find the MVC 3 Html.BeginForm Expression overload

查看:64
本文介绍了找不到MVC 3 HTML.BeginForm表达式重载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆