How do I apply a CSS class to Html.ActionLink in ASP.NET MVC?

前端 未结 7 626
借酒劲吻你
借酒劲吻你 2020-12-01 06:02

I\'m building an ASP.NET MVC application, using VB.NET and I\'m trying to apply a css class to a Html.ActionLink using the code:



        
相关标签:
7条回答
  • 2020-12-01 06:31

    deleted the c#... here is the vb.net

    <%=Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"}, Nothing)%>
    
    0 讨论(0)
提交回复
热议问题