详细视图单选按钮验证 [英] Detail view radiobutton validation
本文介绍了详细视图单选按钮验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:DetailsView ID="CustomersDetail" runat="server" Height="10px" Width="650px"
DataKeyNames="customerid" OnItemCommand="CustomersDetail_ItemCommand" OnModeChanging="CustomersDetail_ModeChanging"
AutoGenerateEditButton="True" AutoGenerateInsertButton="True"
OnPageIndexChanging="CustomersDetail_PageIndexChanging" AutoGenerateRows="False"
AllowPaging="True" OnItemUpdating="CustomersDetail_ItemUpdating" OnDataBound="CustomersDetail_DataBound"
OnItemInserting="CustomersDetail_ItemInserting" CellPadding="4" ForeColor="#333333"
GridLines="None">
<fields>
<asp:TemplateField HeaderText="Is Active?:">
<itemtemplate>
<asp:RadioButtonList ID="RadioButtonListIsActive" runat="server" RepeatDirection="Horizontal"
<asp:ListItem Value="True" Text="Yes" />
<asp:ListItem Value="False" Text="No" />
</itemtemplate>
<fields>
<asp:DetailView></fields></fields>
如何验证已检查单选按钮之一
How can i put the validation that one of radio-buttons have been checked
推荐答案
使用javascript
在JavaScript中使用在gridview中验证单选按钮列表 [如何检查至少一个RadioButtonList选中了一个项目? [
Using javascript
validate radiobuttonlist in a gridview using javascript[^]
Using Validators
How to check that at least one RadioButtonList has an item selected?[^]
这是您要寻找的东西吗?
如何验证一组单选按钮?[ ^]
希望对您有帮助
Is this what you''re looking for?
How to validate a group of radio buttons?[^]
Hope it helps
这篇关于详细视图单选按钮验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文