MVC中的单选按钮分组

时间:2019-01-28 19:14:31

标签: html asp.net-mvc razor model-view-controller

已附上表格的屏幕截图。我希望不同的行为单选按钮设置不同的组。有人可以分享您对同一enter image description here的输入

        <fieldset id=@file.DocumentProperties.GUID>
            <div class="form-check form-check-inline">
                @Html.RadioButtonFor(model => file.DocumentProperties.SelectedSecurityType, "Public", new { name = @file.DocumentProperties.GUID })Public

在当前代码中,所有单选按钮的行为都好像是一组,因此单击一行会取消选中来自不同行的单选按钮

0 个答案:

没有答案