标签: asp.net-core razor-pages
当我单击编辑链接时,出现页面未找到错误。将鼠标悬停在编辑链接上时,我可以看到网址为/editprofile/Edit/0E...,但是应该是/editprofile/Edit/id=0E...,这就是为什么找不到页面的原因。这是我用于编辑的HtmlAction链接:
/editprofile/Edit/0E...
/editprofile/Edit/id=0E...
<td> @Html.ActionLink("Edit", "Edit", new { id = item.Id }, new {id = "@Id"}) </td>