how to generate Html.ActionLink with icon

后端 未结 6 2177
故里飘歌
故里飘歌 2020-12-14 15:30

I\'m starting to learn ASP.NET MVC, and have a problem, how generate code with Html.ActionLink like this:



        
6条回答
  •  孤城傲影
    2020-12-14 15:54

    Simple as this:

    @Html.ActionLink("Title", "Action", null, new {@class="btn btn-info fa fa-pencil" })
    

提交回复
热议问题