<asp:RadioButtonList runat="server" SelectedValue='<%#(Convert.ToString(Eval("Answerid")) != "0" ? Convert.ToString(Eval("Answerid")):"5") %>' ID="Radiobtnanswer" RepeatColumns="1" RepeatDirection="Vertical"> <asp:ListItem Value="1"></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> <asp:ListItem Value="4"></asp:ListItem> <asp:ListItem Value="5" Text="" style="display: none" /> </asp:RadioButtonList>
<asp:RadioButtonList runat="server" SelectedValue='<%#(Convert.ToString(Eval("Answerid")) != "0" ? Convert.ToString(Eval("Answerid")):"5") %>' ID="Radiobtnanswer" RepeatColumns="1" RepeatDirection="Vertical"> <asp:ListItem Value="1" Text='<%Bind("abc")%>></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> <asp:ListItem Value="4"></asp:ListItem> <asp:ListItem Value="5" Text="" style="display: none" /> </asp:RadioButtonList>
radiobuttonlist.Items.AddRange(actionList.ToArray()); radiobuttonlist.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)