下面是我的注册表剃须刀页面
<div class="reg-panels">
<div class="container-rim">
<div class="row-fluid clearfix">
<div class="col-md-12">
<h2>
Please enter your account information
</h2>
<div class="register-accounts">
<h3>
@strMemTypeText Membership - @strMemPlanText
</h3>
@using (Html.BeginForm())
{
<table>
<tr>
<td class="FormLeft" width="200px">
<span class="mandtry">* </span>Username:
</td>
<td class="FormRight">
@Html.TextBoxFor(u => u.UserName, new { @class = "form-control", @Placeholder = "UserName", @onkeypress = "return AvoidSpace(event)" })
@Html.ValidationMessageFor(u => u.UserName, "", new { @class = "red" })
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" class="btn" id="btnProceed" value="Proceed"/>
</td>
</tr>
</table>
}
</div>
</div>
</div>
</div>
</div>
我的控制器.cs
[HttpPost]
public ActionResult RegisterStep(Company company)
{
.....
}
当我单击继续按钮时,没有执行任何操作。我也尝试使用@using (Html.BeginForm("Action","controller", FormMethod.Post))。
