Putting HTML inside Html.ActionLink(), plus No Link Text?

后端 未结 11 1821
忘了有多久
忘了有多久 2020-11-28 01:54

I have two questions:

  1. I\'m wondering how I can display no link text when using Html.ActionLink() in an MVC view (actually, this is Site.Mast
11条回答
  •  抹茶落季
    2020-11-28 02:41

    It's very simple.

    If you want to have something like a glyphicon icon and then "Wish List",

     @Html.ActionLink("Wish List (0)", "Index", "Home")
    

提交回复
热议问题