Correct list type for checkboxes

hachaichiala

New Member
I need my GET Create action method to return two lists to be passed to the view. One is a dropdown list so SelectList type is fine. However, the other is to be displayed as checkboxes. Can anybody advise the correct/best list type to use?\[code\] // // GET: /Change/Create public ActionResult Create() { ViewBag.StaffID = new SelectList(db.Staff, "StaffID", "Fullname") ViewBag.BusinessAreas = new *?* (db.BusinessArea, "BusinessArea", "BuinessAreaName"); return View(); }\[/code\]
 
Back
Top