The following code in a cshtml file creates a dropdown with a list of Contacts, but the field it uses for the description of values, is not the one I want to display.
How do I force it to choose data from a different field in the Contact object?
@Html.DropDownList("ContactId", String.Empty)
where,
Model.ContactListis populated in your controller action.p.s. I’m not entirely certain whether you mean change the title of the select option text or the property that is updated, so have presented a kind of hybrid offering