Question: How would I fix it to a DropdownList preselect in my create.cshtml? I need this: But I am getting this. How would I fix this?

How would I fix it to a DropdownList preselect in my create.cshtml?

I need this:

ack to List Length (ms) UnitPrice Album Media Type 0 0.00 ...And
But I am getting this.
Justice For All ...And Justice For All [1997] Black Light Syndrome 20th

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" })
       

   


ack to List Length (ms) UnitPrice Album Media Type 0 0.00 ...And Justice For All ...And Justice For All [1997] Black Light Syndrome 20th Century Masters - The Millennium ( A Copland Celebration, Vol. I A Matter of Life and Death A Real Dead One A Real Live One A Soprano Inspired A Tempestade Tempestade Ou O Livro C Ace Of Spades O AAC audio file O MPEG audio file O Protected AAC audio file O Protected MPEG-4 video file O Purchased AAC audio file Create

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!