Multiple Buttons click logic in ASP.Net MVC

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

@using (Html.BeginForm("Cancel","Home", FormMethod.Post))
{
<input type="submit" name="Cancel" value="Cancel" />

}
@{Html.EndForm();}

@using(Html.BeginForm("Save", "Home", FormMethod.Post))
{

<input type="submit" name="Save" value="Save" />
}
@{Html.EndForm();}

No comments: