html - Styling ActionLinks in _LoginPartial compared to _Layout -
parent question: asp.net mvc navbar-brand header text color
i have successfuly changed styling of actionlinks in _layout file. successfuly inherit style style.css file way:
<li>@html.actionlink("about", "about", "home", new { area = "" }, new { @class = "navbar-brand" })</li>
when try same actionlinks in _loginpartial file:
<li>@html.actionlink("register", "register", "account", routevalues: null, htmlattributes: new { id = "registerlink" }, new { area = "" }, new { @class = "navbar-brand" })</li>
the references added _loginpartial actionlink these:
new { area = "" }, new { @class = "navbar-brand" }
this not @ work, breaks application. these links stardard mvc , not changed.
how apply styling _loginpartial actionlinks?
you should write:
@html.actionlink("register", "register", "account", new { area = "" }, new { id = "registerlink", @class = "navbar-brand" })
Comments
Post a Comment