1
Vote

Unable to populate dropdown list

description

Hi here is the code to populate drop down in MVC3. I can't populate the data ..I got an empty dropdown
<div class="editor-label"> @Html.LabelFor(model => model.genre_id,"genre") </div>
    <div class="editor-field">
        @Html.DropDownList("genre_id",String.Empty)
        @Html.ValidationMessageFor(model => model.genre_id)
    </div>

file attachments

comments