ASP.NET MVC passing an ID in an ActionLink to the controller

前端 未结 5 1717
故里飘歌
故里飘歌 2020-12-07 20:03

I can\'t see to retrieve an ID I\'m sending in a html.ActionLink in my controller, here is what I\'m trying to do

  • <%= Html.ActionLink(\"Mod
  • 5条回答
    •  無奈伤痛
      2020-12-07 20:16

      On MVC 5 is quite similar

      @Html.ActionLink("LinkText", "ActionName", new { id = "id" })
      

    提交回复
    热议问题