Click here to Skip to main content
16,004,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<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
Posted
Updated 26-Jul-11 5:20am
v2

 
Share this answer
 
Comments
Vimalrashamra 26-Jul-11 14:11pm    
Detail View did not have any submit button..
thatraja 26-Jul-11 14:13pm    
Then trigger or call at any other controls events which submit & saves the values in detailsview
Is this what you're looking for?

How to validate a group of radio buttons?[^]

Hope it helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900