Hello,
How do you hook a button control to a method in the Controller in MVC4. I tried making the button type submit and created post method as follows but it is never called when the button is pressed:
[Authorize] //Must be logged into to see these screens
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Projects(ProjectHeaderModel model)
{
return View();
}
button declaration looks as follows:
<form>
<div class="float-right" style="padding-top: 5px">
@Html.Syncfusion().Button("btnCreateProject").Text("Create a New Project").Width(150).Height(30).Type(ButtonTypes.Submit)
</div>
</form>
Thanks,
Doug