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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -