我是 mvc 新手,我有 2 个下拉列表,我需要使用 mvc 3 绑定第二个下拉列表。
代码示例
@<table>
<tr>
<td>
@Html.DropDownList("Brands", Model.Brands, "Select Brand", New With {.style = "width:150px;"})
</td>
</tr>
<tr>
<td>
@Html.DropDownList("Models", Model.Models, "Select Model", New With {.style = "width:150px;"})
</td>
</tr>
<tr>
<td>
@Html.DropDownList("Devices", Model.Devices, "Select Device", New With {.style = "width:150px;"})
</td>
</tr>
<tr>
<td>
@Html.DropDownList("Systems", Model.Systems, "Select System", New With {.style = "width:150px;"})
</td>
</tr>
</table>
我需要按品牌填充模型并按模型填充设备。任何帮助请..
谢谢