MVC my url is creating “?Length=4”

后端 未结 2 1121
温柔的废话
温柔的废话 2021-02-15 13:53

I am creating an MVC4 application. I have a small issue. My code is

  • @Html.ActionLink(\"Contract\", \"Contract\", \"Home\", new {
  • 2条回答
    •  星月不相逢
      2021-02-15 14:23

      You need to add the parameter

      , new {}
      

      to Html.ActionLink.

      The first object is for the query string, the second is for the HTML parameters.

    提交回复
    热议问题