G
Guest
I have a radio button list control in the edit item template of a formview,
as below. I want to bind this to a bit field from my sql database, however I
can't seem to figure it out. Could some please provide me assistance on how
to do this?
<asp:FormView ID="FormView1" runat="server">
<EditItemTemplate>
<table>
<tr>
<td>Active:</td>
<td>
<asp:RadioButtonList ID="optActive" runat="server">
<asp:ListItem Value="1" Text="Yes" />
<asp:ListItem Value="0" Text="No" />
</asp:RadioButtonList>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:FormView>
Thank you!
Tim
as below. I want to bind this to a bit field from my sql database, however I
can't seem to figure it out. Could some please provide me assistance on how
to do this?
<asp:FormView ID="FormView1" runat="server">
<EditItemTemplate>
<table>
<tr>
<td>Active:</td>
<td>
<asp:RadioButtonList ID="optActive" runat="server">
<asp:ListItem Value="1" Text="Yes" />
<asp:ListItem Value="0" Text="No" />
</asp:RadioButtonList>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:FormView>
Thank you!
Tim