(sorry but I've searched related questions but ive only found this without answer: Drop-down list not populating other controls)
okay so I'am stuck here, first of all, I'am strickly backend .net developer but Im in situation where I need to help, okay so the problem is: i dont know how to populate second combo box which depends on the first one, for example, there are clients and contacts, every client has own contacts, so depending on which client you select, we need to show his contacts: how to do this? on the wpf platform, we simply have a on item selection changed event, something like that, and on changed we update the second combo box, but i have no idea how to do this in asp.net mvc, i pouplate the first combo box like this:
<div class="form-group">
@Html.LabelFor(model => model.ClientID, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("ClientID", TempClass.GetClients, "Select Client")
</div>
</div>
Where TempClass.GetClients returns
IEnumerable<SelectListItem>
with values of: ID and the name of the client.
Hope you understand, Thanks in advance.