Mam następującyAsp.net MVC Label Dla
<label for="Forename">Forename</label>
<%= Html.TextBoxFor(m => m.Customer.Name.Forename) %>
Problem z tym jest to, że jest wyświetlany jako
<label for="Forename">Forename</label>
<input type="text" value="" name="Customer.Name.Forename" id="Customer_Name_Forename">
nie co chcę ofc.
Chciałbym rozszerzenie, aby poprawnie renderować etykietę (tj. Z atrybutem for = "" mającym wartość identyfikatora wejściowego), czy jest coś w MVC 2, które robi to nativly zanim zacznę pisać własne rozszerzenie?
Doceń kod s nippet =) – afreeland
"niszczyć swój model za pomocą atrybutu [DisplayName]" - lol – Alex
@Alex O tak, to był okropny pomysł, dobra robota, wiem, że lepiej 4 i pół roku później. –