I have a loop where radio buttons are displayed depending on certain information.
I need to make the ID a combination for two variables, Resource and a counter, i.
I have it looping
for (int i = 0; i < ResourceCount; i++)
{%>
<TD>
<%string ResourceName = Resource[i].ToString();
<%=ResourceName%>
</TD>
<%for(int i2 = 0; i2 < 10; i2++)
{
<asp:RadioButton runat="server" ID="<%=ResourceName%>-<%=i2%>" GroupName="GName" />
}
<%}
Is there a way to do this?
Thank you.