Last post Aug 16, 2017 05:07 PM by bbcompent1
Aug 16, 2017 11:35 AM|brucey|LINK
I have a field called SupportRequired saved within the database as a bit.
How do I display this field as a checkbox within html i.e
A checkbox with the text Yes and another Checkbox with the text No.
I have one checkbox at the moment, but I need to display two checkboxes for the Yes and No text.
@Html.LabelFor(m => m.SupportRequired, "Do you require support")
@Html.CheckBoxFor(m => m.SupportRequired })
Aug 16, 2017 05:07 PM|bbcompent1|LINK
You will want to do a checkbox list rather than individual check boxes. You can actually use radio button list controls which will give you that yes or no, not both.