我有一个登录/注册表单,每个功能都有一个按钮
<div id="ManualLogin">
@using (Html.BeginForm(new { Controller = "Companies", Action = "ManualLogOn" }))
{
<fieldset>
<legend>Enter details</legend>
<div class="editor-label">
@Html.LabelFor(u => u.Name)
</div>
<div class="editor-field">
@Html.TextBoxFor(u => u.Name)
</div>
<div class="editor-label">
@Html.LabelFor(u => u.Password)
</div>
<div class="editor-field">
@Html.PasswordFor(u => u.Password)
</div>
<input type="submit" id="LogInButton" name="Command" value="Log in"/>
<input type="submit" id="RegisterButton" name="Command" value="Register"/>
<label id="ServerValidaiotnLabel">@ViewBag.Error</label>
</fieldset>
}
</div>
如何更改它以使其根据单击的按钮调用操作。(登录/注册)