How do I create a strongly typed BeginForm?

Posted by itchi on Stack Overflow See other posts from Stack Overflow or by itchi
Published on 2010-05-21T06:41:26Z Indexed on 2010/05/21 6:50 UTC
Read the original article Hit count: 385

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about asp.net-mvc