Posted on: 10/7/2014 4:01:21 PM | Views : 431

how you handle asp:RadioButtonList  in a form?
this control need to do two things.
if there is no data in database, it should show a default value selected. that is Yes.
If database got data and page is display database data, it should show that. If data is yes, RadioButton shows, yes.   if data is no, RadioButton shows no. How can i do that?
first time using RadioButton in C#.
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatLayout="Flow"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem>
</asp:RadioButtonList>

Go to the complete details ...