publicActionResult Create() { IEnumerable<SelectListItem> items = db.IIDBS .Select(c =>newSelectListItem { Value=c.InstituteName, Text=c.InstituteName }); ViewBag.IIDBS = items; return View(); }
<fieldset> List of Financial Institute <%:Html.ListBox("InstituteName",(IEnumerable<SelectListItem>) ViewBag.IIDBS,"Select Financial Institute Name") %> </fieldset>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)