ASP.NET MVC Core Tag Helper Issue
问题 I am having an issue using tag helpers in a form element. When I choose the "GET" HTTP method, the parameter for my Edit method in my Item controller won't get filled by the "hello" argument. However, when I choose the "POST" HTTP method, the parameter is filled correctly with "hello". Why is this happening? <form asp-controller="Item" asp-action="Edit" asp-route-item="hello" method="get"> <input type="submit" /> </form> And here is the controller: [HttpGet] [HttpPost] public IActionResult