ActionLink htmlAttributes
问题 WORKS <a href=\"@Url.Action(\"edit\", \"markets\", new { id = 1 })\" data-rel=\"dialog\" data-transition=\"pop\" data-icon=\"gear\" class=\"ui-btn-right\">Edit</a> DOES NOT WORK - WHY? @Html.ActionLink(\"Edit\", \"edit\", \"markets\", new { id = 1 }, new {@class=\"ui-btn-right\", data-icon=\"gear\"}) It seems you can\'t pass something like data-icon=\"gear\" into htmlAttributes? Suggestions? 回答1: The problem is that your anonymous object property data-icon has an invalid name. C# properties