Comment ajouter data-*
attributs html en utilisant TextboxFor?Données Html5- * avec asp.net mvc Attributs TextboxFor html
C'est ce que j'ai actuellement:
@Html.TextBoxFor(model => model.Country.CountryName, new { data-url= Url.Action("CountryContains", "Geo") })
Comme vous le voyez, le -
pose un problème ici data-url
. Quel est le moyen de contourner cela?
double possible de [attributs html avec Hyphenated asp.net mvc] (http://stackoverflow.com/questions/2897733/hyphenated-html-attributes-with-asp-net-mvc) –