Create a T4MVC ActionLink with url fragment

前端 未结 4 1409
小鲜肉
小鲜肉 2020-12-20 14:25

Is there a way to create a strongly typed T4MVC ActionLink with a hash/pound/fragment in it?

For example, here is the link I\'d like to create:



        
4条回答
  •  不思量自难忘°
    2020-12-20 15:10

    In ASP.NET MVC 2.0 new helpers have been added that allow you to specify the fragment. Example:

    <%= Html.ActionLink("Feed me", "Action", "Controller", null, null, "food", null, null) %>
    

提交回复
热议问题