To create radio buttons, we can use @Html.RadioButton helper method. We need to ensure that the name of the radio buttons are same if we want to make them mutually exclusive.
@Html.RadioButton("Active", "true") Yes
@Html.RadioButton("Active", "false", true) No
Despite the fact that we have @Html.RadioButtonFor , it is not so useful in this context as it only creates one radio button that is not going to be useful as if it is selected, you can’t de select it.Views: 24265 | Post Order: 28