How can translate that line using TextBoxFor (MVC):
<input id="Name" name="Name" type="text" data-bind="value: Name" class="title width-7" />
Thanks
MVC 3 will translate underscores in html attribute names into hyphens, so something like this should do the trick
@Html.TextBoxFor(m => m.Name, new { data_bind="value: Name", @class = "title width-7" })
1.4m articles
1.4m replys
5 comments
57.0k users