You cannot use @data-toogle
, but rather you need to use an underscore. So you link should be like this:
@Html.ActionLink("What is this", "Pages", "Root", new { slug = "what-is-this" },new{@class="dropdown-toggle", data_toggle="dropdown"})
The rest will be done by MVC and your data_toggle
will be converted to data-toggle
. Also, there is no need to use @
with every item. You use it only when you use reserved C# keywords like class
.