MVC DROPDOWNLIST
MVC DROPDOWNLIST
@Html.DropDownList("SchProductLevel-" + Row + "", new SelectList(Model.ProductTypeMstList, "ProdTypeId", "ProdTypeName", item.ProdLevelId), "--Select--", new { id = "EditSchProductLevel-" + Row + "", @class = "EditSchClassProductLevel form-control EditContClassddlProd" })
@Html.DropDownList("PackageType", (SelectList)ViewBag.Package, new { id = "ddlQueryType", @class = "form-control" })
@Html.DropDownList("ddlSchemeType", new SelectList(Model.SchemeTypeList, "SchemeTypeId", "SchemeName", Model.SchemeMaster.SchemeType.ToString()), "--Select--", new { @class = " form-control" })
@model SchemeSetup.Models.SchemeModel
@{
var prodNamelist = Model.SchProductList.Select(n => new { n.ProdName,n.ProdLevelId }).ToList();
var aaa = new List<string>();
var temp = 0;
}
@{aaa = prodNamelist.Where(x => (x.ProdLevelId == item.ProdLevelId)).Select(n => n.ProdName).ToList();}
@Html.DropDownList("ddlProdR-" + Row + "", new MultiSelectList(BusinessLayer.SchemeMasterManager.GetProdBased(item.ProdLevelId), "Id", "Name",@aaa), new { @class = "form-control ddlProdR", @multiple = "multiple" })