Tag Archives: Call action with parameter from button click event in Asp.Net MVC

Call action from button click event in Asp.Net MVC

We can call action from button click event using location.href.

<button id="btnSave" onclick="location.href='@Url.Action("Action", "Controller", new { Parameter = "Value" })'">Save</button>