How to set bootstrap checkbox in razor CheckBoxFor()

后端 未结 5 1801
萌比男神i
萌比男神i 2021-01-06 01:25

I want to use bootstrap styled checkbox in my asp .net mvc form, however I find it very difficult. After hours looking for solution, I couldn\'t find anything that works for

5条回答
  •  暖寄归人
    2021-01-06 01:29

    This solved the issue:

                     
    @Html.CheckBoxFor(model => model.Synchronize) @Html.LabelFor(c => c.Synchronize)

提交回复
热议问题