My code
@Html.ActionLink("test1", "Index", new { Area = "area1", Controller = "controller1" })
I want to include the following css class in the action link.
class="rtsLink"
You can also add several css classes. If so, I need to add another css class.
class="rtsTxt"
Update:
<li class="rtsLI" id="Summary"><a href="javascript:void(0);" onclick="javascript:rtsXXX.OnClientTabSelected(thisββ, 0);" class="rtsLink"><span class="rtsTxt">Test</span></a></li>
Above, I replace the following actionlink:
<li class="rtsLI" >@Html.ActionLink("test1", "Index", new { Area = "Tools", Controller = "controller1" }, new { @class = "rtsLink rtsTxt"})</li> "
At first css is working fine. But when using Actionlink css does not work. thanks
user1537319
source share