How would I fix it to a DropdownList preselect in my create.cshtml? I need this: But I
Fantastic news! We've Found the answer you've been seeking!
Question:
How would I fix it to a DropdownList preselect in my create.cshtml?
I need this:
How would I fix this? The button works but I'm not sure how to have this in a list format. This is what I have in my code:@Html.LabelFor(model => model.AlbumList, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("Album", Model.AlbumList, htmlAttributes: new { @class = "form-control", size = 10 })
@Html.ValidationMessageFor(model => model.AlbumList, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.MediaTypeList, htmlAttributes: new { @class = "control-label col-md-2" })
@foreach(var term in Model.MediaTypeList)
{
}
@Html.ValidationMessageFor(model => model.MediaTypeList, "", new { @class = "text-danger" })
Related Book For
Management of Organizational Behavior
ISBN: 978-0132556408
10th edition
Authors: Paul Hersey, Kenneth H. Blanchard, Dewey E. Johnson
Posted Date: