I have a Repeater
of RadioButton
. Is there an easy way to access all these RadioButton
from the C# side? For example, maybe access by the GroupName
? I couldn't find anything simple online.
ASPX:
<asp:Repeater ID="rptOtherNetworks" runat="server" >
<HeaderTemplate>
<li data-theme="c" data-role="list-divider" class="ui-li ui-li-divider ui-bar-b">
<asp:Localize ID="locRecentlySelected" runat="server"
EnableViewState="False" meta:resourcekey="locRecentlySelectedResource1"
Text="Select Network from Other Cameras">
</asp:Localize>
</li>
</HeaderTemplate>
<ItemTemplate>
<li data-theme="c">
<!-- I want to access these -->
<asp:RadioButton Text='<%# Eval("NetworkDescription") %>' data-mac='<%# Eval("MAC") %>'
Checked="False" GroupName="RadioGroupNetworkCameras" runat="server" />
</li>
</ItemTemplate>
</asp:Repeater>