Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

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

Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Giving all the radio buttons the same name attribute should group them.
Avatar of JElster

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" />
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JElster

ASKER

I found this.. which I think does it....

http://www.codeproject.com/KB/webforms/How_group_RButtons.aspx