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

前端 未结 4 757
南方客
南方客 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 08:51

    Check to see if your using the right overload for Html.ActionLink.

    They get tricky because they take any object, even anonymous ones, and transform those into route value dictionaries or html attributes depending on the overload your using. Since it will run and compile fine if you mess these two up its hard to tell if your using the right overload.

提交回复
热议问题