how to add glyph to actionlink

how to add glyph to actionlink

samwsamw Posts: 15Questions: 7Answers: 0

Hi, I'm trying to a bootstrap glyph icon to an html.actionlink but it doiesnt sem to be working:
here's my code:
return '@Html.ActionLink("Summary", "EmployeeSummary", "Employee", new {@class = "glyphicon glyphicon-list-alt", EmployeeID = "replace" },null)'.replace("replace", data) ;

Is my syntax incorrect or am I putting the code ({@class = "glyphicon glyphicon-list-alt") in the wrong place?

thanks

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @samw ,

    Is this related to DataTables? It might be better to post on StackOverflow or some other forum.

    Cheers,

    Colin

This discussion has been closed.