In order to group a series of radiobutton and allow only one control of the group to be selectable we’ll have to set the same value for the “name” attribute on all controls of the group. In Vb.Net
Code Snippet
<div id="group1">
@Html.RadioButton("group1", False, New With {.class = "radioClass"})
@Html.RadioButton("group1", False, New With {.class = "radioClass"})
@Html.RadioButton("group1", False, New With {.class = "radioClass"})
</div>
<div id="group2">
@Html.RadioButton("group2", False, New With {.class = "radioClass"})
@Html.RadioButton("group2", False, New With {.class = "radioClass"})
@Html.RadioButton("group2", False, New With {.class = "radioClass"})
</div>
@Html.RadioButton("group1", False, New With {.class = "radioClass"})
@Html.RadioButton("group1", False, New With {.class = "radioClass"})
@Html.RadioButton("group1", False, New With {.class = "radioClass"})
</div>
<div id="group2">
@Html.RadioButton("group2", False, New With {.class = "radioClass"})
@Html.RadioButton("group2", False, New With {.class = "radioClass"})
@Html.RadioButton("group2", False, New With {.class = "radioClass"})
</div>