Hey working on a mvc project I have this link
@Html.ActionLink(item.Testers.Name, "Index", "Video", new { id = item.videoId }, null)
I want to add a css class to the action link. How can I do that?
Hey working on a mvc project I have this link
@Html.ActionLink(item.Testers.Name, "Index", "Video", new { id = item.videoId }, null)
I want to add a css class to the action link. How can I do that?
Edit: As pointed out in comment, I made correction.
@Html.ActionLink(item.Testers.Name, "Index", "Video", new { id = item.videoId}, new { @class = "your_css_class" })
This is already answered here