I have an @Html.ActionLink()
as such
@Html.ActionLink("Ändra lösenord!!", "ChangePassword", "Manage", new { area = "Account" }, new { @class = "settingsMenu" })
But it wont take my class, how can I add a css-class to my ActionLink
that has an area
defined already?
On another link (without area it works fine)
@Html.ActionLink("Skapa konto", "Register", "", new { @class = "loginfront" })
You must change your code as follow:
Edited:
@Html.ActionLink("Ändra lösenord!!", "ChangePassword", new { area = "Account", controller = "Manage" }, new { @class = "settingsMenu" })