我有一个单选按钮列表,其中我绑定(bind)到我的数据表。我能够绑定(bind)到单选按钮列表 我有列[id, name] 默认情况下名称应该在单选按钮列表中被选中。
- 现在默认情况下我需要为数据表中的值选择一个单选按钮 如何在这里实现这个概念 谢谢你
最佳答案
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>One</asp:ListItem>
<asp:ListItem Selected="True">Two</asp:ListItem>
<asp:ListItem>Three</asp:ListItem>
</asp:RadioButtonList>
关于asp.net - 如何使用数据表在单选按钮列表中设置默认值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1713524/