私はmvcを初めて使用し、2つのドロップダウンリストがあり、mvc3を使用して2番目を1つずつバインドする必要があります。
コードサンプル
@<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>
モデルをブランドで塗りつぶし、デバイスをモデルで塗りつぶす必要があります。助けてください。
ありがとう