我提到了这篇文章,但仍然无法正常工作。谁能告诉我我错在哪里?我的代码如下:
@using (Html.BeginForm("Login", "Account",
FormMethod.Post, new { @class = "form" }))
{
@Html.ValidationSummary(true,
"Log in was unsuccessful. Please correct the errors and try again.")
<fieldset>
<legend>Log in Form</legend>
<ol>
<li>
@Html.LabelFor(m => m.UserName)
@Html.TextBoxFor(m => m.UserName)
</li>
<li>
@Html.LabelFor(m => m.Password)
@Html.PasswordFor(m => m.Password)
</li>
<li>
@Html.CheckBoxFor(m => m.RememberMe)
@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
</li>
</ol>
<input type="submit" value="Log in" />
</fieldset>
<p>
@Html.ActionLink("Register", "Register") if you don't have an account.
</p>
我想在这个表单中添加表单类。请帮帮我..