How do I add data-*
html attributes using TextboxFor?
This is what I currently have:
@Html.TextBoxFor(model => model.Country.CountryName, new { data-url= Url.Action("CountryContains", "Geo") })
As you see, the -
is causing a problem here data-url
. Whats the way around this?