I have two buttons and only one work...
@using (Html.BeginForm("Edit", "Employer"))
{
<button name="Edit_hours">Edit</button>
}
</td>
<td>
@using (Html.BeginForm("Cancel", "Employer"))
{
<button name="Back">Back</button>
}
Back button work properly, but the Edit button dasn t want work... Controller and View should be good.
控制器:
public ActionResult Edit()
{
return View();
}
观点:
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
我不理解为什么不工作?