how to insert radi button value in c#.net??
Hi friends
I m beginner in c#.net. I have two radio buttons namely male and female. I want to insert that field to my table. i dont know how to insert. and also if i select grid row field of column name gender if it is male maleRadioButton should be enabled if it is female FemaleRadiobutton should be enabled. Any idea.....
<td>
<asp:RadioButton ID="rbMale" runat="server" GroupName="b" Text="Male" />
<asp:RadioButton ID="rbFemale" runat="server" GroupName="b" Text="Female" />
</td>
<asp:GridView ID="gvNewRegistration" runat="server" AllowPaging="True"
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlNewRegistration"
EmptyDataText="No Records found !!" ForeColor="#333333" GridLines="None"
Height="289px" ondatabound="gvNewRegistration_DataBound"
onprerender="gvNewRegistration_PreRender"
onrowcommand="gvNewRegistration_RowCommand"
onselectedindexchanged="gvNewRegistration_SelectedIndexChanged"
ShowFooter="True" Width="414px">
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<Columns>
<asp:CommandField ShowSelectButton="true" />
<asp:BoundField DataField="Sex" HeaderText="Sex" SortExpression="Sex" />
this is my .aspx page...
Thanks in advance.........