Why is my HTML form not submitting to my ASP.NET Core MVC POST action?

13 hours ago 3
ARTICLE AD BOX

I have a form in my ASP.NET Core MVC view, but when I click submit, my POST action does not run.

This is my controller method:

public IActionResult Create() { return View(); } [HttpPost] public IActionResult Create(Product product) { return RedirectToAction("Index"); }

Here is the view:

<form> <input asp-for="Name" /> <button type="submit">Save</button> </form>

Why is the form not posting to my POST action method?

Read Entire Article