How do I create a strongly typed BeginForm?
问题 I've seen a few examples of people using this syntax for HTML.BeginForm: (Html.BeginForm<Type>(action => action.ActionName(id))) But when I try this syntax all I get is a: The non-generic method System.Web.Mvc.Html.FormExtensions.BeginForm(System.Web.Mvc.HtmlHelper)' cannot be used with type arguments What am I missing? Visual Studio 2010, System.Web.MVC version is v2.0.50727 回答1: You will find this extension methods in MVCContrib and more specifically in the Microsoft.Web.Mvc.dll assembly in