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

前端 未结 4 763
南方客
南方客 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:00

    you need stick stick an extra empty object parameter in before the htmlattributes, something like this off the top of my head

     html.actionlink("a","b","c",new {},new {@class = "d"})
    

提交回复
热议问题