Member
123 Points
468 Posts
Sep 06, 2018 10:23 PM|SSpost|LINK
I have the following code behind
public List<string> Reason { get; set; } public ReasonDecode reasonDecode = new ReasonDecode();
Which list I am displaying as a listbox
@Html.LabelFor(m => m.Reason) @(Html.ListBoxFor(m => m.Reason, Model.ReasonDecode.GetSelectList()))
How do I convert this ListBox to a CheckBox List in MVC ? So that when user checks multiple options they are now in List<string> Reason
Member
123 Points
468 Posts
CheckBox List ?
Sep 06, 2018 10:23 PM|SSpost|LINK
I have the following code behind
Which list I am displaying as a listbox
How do I convert this ListBox to a CheckBox List in MVC ? So that when user checks multiple options they are now in List<string> Reason