C# 为单选按钮提供所需的字段验证器
这是我的html代码,其中我使用了两个单选按钮,我需要一个必需的字段验证器,它将强制用户选择至少一个单选按钮C# 为单选按钮提供所需的字段验证器,c#,radio-button,C#,Radio Button,这是我的html代码,其中我使用了两个单选按钮,我需要一个必需的字段验证器,它将强制用户选择至少一个单选按钮 <div class="form-group"> <label for="enterType" class="col-sm-2 control-label">Select Type </label> <div class="col-sm-10"> <asp:RadioButton ID="rbEncrypti
<div class="form-group">
<label for="enterType" class="col-sm-2 control-label">Select Type
</label>
<div class="col-sm-10">
<asp:RadioButton ID="rbEncryption" runat="server"
GroupName="grpEncryption" Text="Encryption (e.g. welcome!, Enter
plain text)" />
</div>
<label for="enterType" class="col-sm-2 control-label" >
</label>
<div class="col-sm-10">
<asp:RadioButton ID="rbDecryption" runat="server"
GroupName="grpEncryption" Text="Decryption (e.g. welcome!, Enter
Encrypted text)" />
</div>
</div>
选择类型
您真的需要验证吗?如果您预先选择了一个选项,用户将无法取消选择。嗯,是的,应该这样想……谢谢您您真的需要验证吗?如果您预先选择了一个选项,用户将无法取消选择。是的,您应该这样想……谢谢