asp.net mvc - How do i apply css to a actionlink in MVC -
below html link <a href="index.html"><i class="fa fa-dashboard fa-fw"></i> dashboard</a>
how convert above below action link css (<i> tag) @html.actionlink("appstore", "index", "home")
please help..
if want have html tag inside anchor tag use url.action instead
<a href="@url.action("index", "home") "><i class="fa fa-dashboard fa-fw"></i>dashboard</a> correct overload html.actionlink is
//linktext, actionname, controllername, routevalues, htmlattributes @html.actionlink("appstore", "index", "home", new object{}, new {class="fa fa-dashboard fa-fw"})
Comments
Post a Comment