ASP.NET MVC - Adding querystring “length=” to ActionLinks?

前端 未结 4 747
南方客
南方客 2020-12-17 08:14

I have a few ActionLinks that when rendered are getting a length key/value added that appears to indicate the number of characters of the controller name. How can this be r

4条回答
  •  执念已碎
    2020-12-17 09:01

    If you are passing 'routeValues',

    Make sure that 'htmlAttributes' is set to null.

     Html.ActionLink("Title", "Action", "Controller", new {}, null )
    

    Else wrong overload of AcitonLink is picked.

提交回复
热议问题