i get values from view bag in asp controller and want to pass it in view using checkboxlist
C#
enter code here void BindChecklistbox() { MenueBussince _mn = new MenueBussince(); var mn = _mn.GetAll(); ViewBag.mnId = new SelectList(mn, "ID", "NameAr"); }ode hereCode
@foreach (var item in ViewBag.mnId) { }

Answers
Know the answer? Post it. Somebody with the same question will find it here.