@for (int i = 0; i < Model.listAddressEnity.Count; i++) { @Html.DropDownListFor(x => x.listAddressEnity[i].City_ID, (SelectList)ViewBag.City_ID) }
var selectList = new SelectList(objCityHandler.SP_GET_CITY().Select(s => new { Id = s.City_ID, Name = s.City_Name }), "Id", "Name"); ViewBag.City_ID = selectList;
var selectList = new SelectList(objCategoryHandler.SP_GET_CATEGORY().Select(s => new { Id = s.Categoty_ID, Name = s.Category_Name }), "Id", "Name", objProductCollectionEntity.ProductEntity.Categoty_ID);
@Html.DropDownList("Country", ViewBag.City_ID as SelectList, "Select City", new { style = "width:200px" })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)