0

我只想选择一个单选按钮,但我不能这样做。这是我的代码:

 <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">

     <HeaderTemplate>
         <table class="tblcolor">
             <tr class="rowcolor">
             <b>
             </b>
             </tr>
</HeaderTemplate>

     <ItemTemplate>
<tr class="tblrowcolors">
<td><%#DataBinder.Eval(Container, "DataItem.QuestionsText")%></td>


     <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">

   <asp:ListItem selected="true"> 1</asp:ListItem>
   <asp:ListItem> 2</asp:ListItem>
   <asp:ListItem> 3</asp:ListItem>
   <asp:ListItem> 4</asp:ListItem>
   <asp:ListItem> 5</asp:ListItem>


    </asp:RadioButtonList>

</tr>
</ItemTemplate>

我已经调查了这个问题,它说“这是 ASP.NET 中继器中的错误”,我关注了一些文章并说需要通过编写 jquery 来修复!不幸的是,我是初学者 Web 开发人员,我对 jQuery 没有很多经验!任何帮助请提前致谢

4

1 回答 1

0

您无法通过更改代码隐藏中的名称值来解决此问题,这是 ASP.NET 的错误/功能。相信我,我已经为你完成了这方面的研究和工作。看 这个

于 2013-07-26T08:56:07.110 回答