以下代码有些问题,因为我可以同时选择多个单选按钮....我怎样才能让下面的代码只选择一个单选按钮?请帮忙。单选按钮只能选择一个盒子....错误
<asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource_BGlist">
<ItemTemplate>
<asp:RadioButton ID="Radio1" GroupName="BG_name" runat="server" Text='<%# Eval("BG_fileName") %>' />
<asp:Label ID="BG_fileNameLabel" runat="server" Text='<%# Eval("BG_fileName") %>' />
</ItemTemplate>
</asp:ListView>
HTTP://www.codeproject .com/Articles/7960/How-to-group-RadioButtons或http://weblogs.asp.net/abdullaabdelhaq/radiobutton-inside-gridview-how-to-get-it-work-as-normal –
如何使用一个'RadioButtonList'控件就像它在[this](http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_radiobuttonlist)演示中那样? – Ghukas
@Ghurkas谢谢......但我可以在ListView中嵌套一个RadioButtonList,就像它在我的情况一样?如何?我一直无法做到这一点 – Gloria