Datalist-edititemtemplate-RadioButtonList
Hi All,
I have a datalist with some questions True/False. I add edit, update and cancel buttons so the user can modify his/her answers.
The problem is the following: I hit the edit button goes and selects first radiobutton value(true)always. I try to wirte a code for the datalist Ondatabound...but seems no to work at all.
How do I program the radiobutton to select whatever I have in DB.
<asp:RadioButtonList id="rdbNew" runat="server">
<asp:ListItem Value="1">Yes</asp:ListItem>
<asp:ListItem Value="0">No</asp:ListItem>
</asp:RadioButtonList >
Thanks.
|