Reputation: 63
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.
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.
Upvotes: 2
Views: 498
Reputation: 2341
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
Upvotes: 2