Build an empty MVC DropdownListFor for a Cascade Sub-List

前端 未结 3 570
滥情空心
滥情空心 2021-01-31 15:40

I would like to build an empty Dropdownlistfor to received the results of a previous Dropdownlisfor selection:

The actual view:

    
3条回答
  •  遇见更好的自我
    2021-01-31 15:53

    Found a solution that I think is the best because it as no service call to build the dropdroplist empty and it's strongly typed:

    @Html.DropDownListFor(m => m.Model_Id, Enumerable.Empty(), HeelpResources.DropdownlistModelFirstRecord)
    

提交回复
热议问题