最初に、リピータで使用できるリピータは使用できますか? もしそうなら、以下のシナリオでどのようにネストされたリピーターを使うことができますか?RadioButtonList内のRepeaterを使用してRadioButtonListのListItemを繰り返す方法
<div class="row">
<asp:Repeater ID="rp_Question" runat="server">
<ItemTemplate>
<p class="_100">
<h2 id="h4_Question" runat="server"><%# Eval("question_text") %></h2>
</p>
<p class="left">
<asp:RadioButtonList ID="rb_Question" runat="server">
<asp:ListItem Text="Option1" Value="1"></asp:ListItem>
<asp:ListItem Text="Option2" Value="2"></asp:ListItem>
<asp:ListItem Text="Option3" Value="3"></asp:ListItem>
<asp:ListItem Text="Option4" Value="4"></asp:ListItem>
</asp:RadioButtonList>
</p>
</ItemTemplate>
</asp:Repeater
各質問のオプションはデータベースに保存され、最小限のオプションが3可能性があり、最大値は6どのように私は内の他のリピータを使用することができる可能性があり
rp_Question.DataSource = _question.GetAll();
rp_Question.DataBind();
をバインドリピータrp_Question各質問のオプションを繰り返します。 このように置いて見せたいです。
あなたはリピータ内に配置された 'asp:RadioButtonList'をバインドするコードを教えてください。 –