How to add class attribute for following situation (Using ReturnUrl only):
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
}
I want something like this:
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }, new { @class = "login-form" }))
{
}
Html.BeginForm()
, therefore, I wish Microsoft would make it possible to callHtml.BeginForm( new{ @class="something"})
without the need to care about all other parameters. – Oldie