add class to @Html.ActionLink
asp.net, asp.net-mvc-4, c#
Solution
for reserved words you have to add @
new { @style="padding:2px 10px;", @class = "className" })
Problem
How do I add a class to this @Html.ActionLink? I've tried many suggestion and none have worked so far. ``` @Html.ActionLink("Physician Profile", "Print", "Roster", new { profilePrintType = ProfilePrintType.PhysicianProfile}, new { style="padding:2px 10px;" }) ```