Suppose you have populated
ViewBag.ItemsForList = [items you want to appear on the combo box];
i.e. Name of the States in US, and have property called
MyItem
in your
Model
. if you do not have the property then you might want to create ViewModel class with the property and use it as Model.
after this when you do following, you will have
MyItem
populated in your
Action
as property of
Model
used when the form is submitted.
@Html.DropDownListFor(model => model.MyItem,
new SelectList(ViewBag.ItemsForList, "StateID", "StateName"))
you will get ID of the state name selected in your Action.