ASP.NET MVC 3 introduces a new way of declaring HTML5 attributes with Html Helpers. The trick is to use underscores in place of the dashes. For Example:
[code lang=”csharp”]
@Html.ActionLink("About", "About", "Home", new { data_some_attribute="testing" })
[/code]
That is all. k. thx. bye.

Leave a Reply