I want to use CheckBoxFor() rather <input type="checkbox"/>
I used the input like this:
<input type="checkbox" name="selectedItems" value="@item.Name" id="@item.Id"/>
here I used the checkbox to hold some values if selected, and then passed them to the controller in a string[] parameter (it's contained within foreach loop)
but how I implement the CheckBoxFor to behave the same, as I know so far, we can only pass a boolean expression as the first parameter?