I hope this is just a bug but figured maybe it was just me.
@Html.ActionLink("Test", "Test", "Test",
new { id = 1 },
new Dictionary<string, object> { { "class", "ui-btn-test" }, { "data-icon", "gear" } })
This does work but if I wanted to add further attributes I have to do it manually!
@Html.ActionLink("Test", "Test", "Test",
new { id = 1 },
new { @class="ui-btn-test", data_icon="gear", data_new_attr="someextra" })
The first doesn't work anymore and I need this one to work. The second works but don't care that it does, because I'm trying to add more attributes, object will not work unless told differently.
htmlAttributes.1[System.String]" Count="1" Keys="System.Collections.Generic.Dictionary2+KeyCollection[System.String,System.Object]" Values="System.Collections.Generic.Dictionary`2+ValueCollection[System.String,System.Object]" href="/Home">Home</a>