JElster
asked on
Radio Button in User Control
Hi..
I have user control that has a single radio button. My page loads the control(s) but depending on the data and loads more than 1 of the same control.. up to 5. My problem is that after the controls are loaded the radio buttons are not in 'synch' - I can select multiple values - I need to controls to act like 1 single radio group so only 1 button of the controls can be selected.
Any ideas
thanks
I have user control that has a single radio button. My page loads the control(s) but depending on the data and loads more than 1 of the same control.. up to 5. My problem is that after the controls are loaded the radio buttons are not in 'synch' - I can select multiple values - I need to controls to act like 1 single radio group so only 1 button of the controls can be selected.
Any ideas
thanks
Giving all the radio buttons the same name attribute should group them.
ASKER
I tried that - I thought it should work too...
<asp:RadioButton ID="radDEFAULTADDRESS" runat="server" ForeColor="Black" Name="grpAddress" Text="Default Address" TabIndex="-1" />
<asp:RadioButton ID="radDEFAULTADDRESS" runat="server" ForeColor="Black" Name="grpAddress" Text="Default Address" TabIndex="-1" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found this.. which I think does it....
http://www.codeproject.com/KB/webforms/How_group_RButtons.aspx
http://www.codeproject.com/KB/webforms/How_group_RButtons.aspx