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

I’m Peter

I’ve spent my career building software and leading engineering teams. I started as a developer and architect, grew into engineering leadership, and today I serve as a Chief Technology Officer.

Here, I share practical insights on technology, leadership, and building high-performing teams.

Connect with me on LinkedIn.

Discover more from Peter Mourfield

Subscribe now to keep reading and get access to the full archive.

Continue reading