Hi,
I have a RadioButton within a Repeater that i wish to assign an ID
dynamically to the radiobutton. However, this won't allow me due to the
following error:
"'<%#((OnlineLearningEnvironment.MultipleChoiceCho ice)Container.DataItem).choiceText%>'
is not a valid identifier."
So, my question is, what do I do? (Code follows)
Thank you in advance,
Tim.
<asp:Repeater ID="repeaterChoices" Runat="server">
<HeaderTemplate>
<blockquote>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><asp:RadioButton
ID="<%#((Choice)Container.DataItem).choiceID%>"
Text="<%#((Choice)Container.DataItem).choiceText%> "
Runat="server"></asp:RadioButton></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</blockquote>
</FooterTemplate>
</asp:Repeater>
<FooterTemplate>
</table>
</blockquote>
</FooterTemplate>
</asp:Repeater>