I looked through the different ways I can use
@using (Html.BeginForm())
but I am still very confused. What I would like to do is to supply this with a class name so I could set up my own parameters.
Also I would like to supply a class to these:
@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
@Html.ValidationMessageFor(m => m.Login.UserName)
Is this possible?
Yes:
@Html.BeginForm("Index", "Home", FormMethod.Post, new { @class = "myClass" })and
@Html.ValidationMessageFor(m => m.Login.UserName, "Validation message", new { @class = "myOtherClass" })You can also do:
@Html.BeginForm(htmlAttributes: new { @class = "myClass" })