I would like to build an empty Dropdownlistfor to received the results of a previous Dropdownlisfor selection:
The actual view:
Personally I would do this with a bit of jQuery and an additional partial view. Your form could look like this:
@Html.DropDownListFor(m => m.Make_Id, Model.MakeList, HeelpResources.DropdownlistMakeFirstRecord)
and then in your controller:
public ActionResult GetModels(int id)
{
ViewBag.DdlModels = new SelectList(rep.GetModelsForCar(id), "Id", "Name");
return PartialView();
}
and then just stick your drop down list in the GetModels partial view