I want to assign HTML attributes to forms created with Html.BeginForm in ASP.NET MVC 3 views, but it seems I have to use the overload
BeginForm(this HtmlHelper htmlHelper,
string actionName,
string controllerName,
FormMethod method,
Object htmlAttributes
)
invoking it like this:
Html.BeginForm(null, null, FormMethod.Post, new {id = "my-form"})
Is there some easier way to do this, so I can pass e.g. new {id = "my-form"} as the only argument to Html.BeginForm?