ASP.NET Actionlink with glyphicon and text with different font

后端 未结 10 989
臣服心动
臣服心动 2020-12-04 15:12

I want to present a button with @Html.ActionLink but i need to have my application font in the text.

With this code:


    @H         


        
10条回答
  •  心在旅途
    2020-12-04 15:44

    This works for me in MVC 5:

    @Html.ActionLink(" ", "EditResources", "NicheSites", new { ViewBag.dbc, item.locale, ViewBag.domainId, domainName = ViewBag.domaiName }, new {@class= "glyphicon glyphicon-edit" })
    

    The first parameter cannot be empty or null or it will blow.

提交回复
热议问题