.Net Core 3.0 AJAX POST Body Always Null
问题 I've recently converted my project from .Net Framework 4.7 to .Net Core 3.0. I'm having trouble getting my AJAX post to work. Here is what's working in .Net Framework 4.7: View: @using (Ajax.BeginForm("Save", "Controller", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "OnSaveSuccess", OnFailure = "OnFailure" }, new { Model })) { ... Model Code Here } Controller: [HttpPost] public JsonResult Save(Contract contract) Here's what is not working in .Net Core 3.0: View: <form method="post"