Build an empty MVC DropdownListFor for a Cascade Sub-List

前端 未结 3 555
滥情空心
滥情空心 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 16:18

    The following is working:

    @Html.DropDownListFor(m => m.Model_Id, **new SelectList(new List()**));
    

提交回复
热议问题