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;" })
for reserved words you have to add @
new { @style="padding:2px 10px;", @class = "className" })
@Html.ActionLink("Physician Profile",
"Print",
"Roster",
new { profilePrintType = ProfilePrintType.PhysicianProfile},
new { style="padding:2px 10px;", @class = "some-css-class" })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With