[RESOLVED] Radio Buttons not grouping correctly?
I have a 2 groups of Radio Button controls on my web page that are dynamically loaded. They are contained within a DataList control. I have the "GroupName" property set for each of the groups, however, I am still able to click on more than one rdo within each group. I've set the "GroupName" property within my HTML markup. Not sure what I've missed.
Thanks,
Re: Radio Buttons not grouping correctly?
hay,
are you using RadioButton or RadioButtonList because if it was RadioButtonList then this will not happen, when you chose item in the group
Re: Radio Buttons not grouping correctly?
I'm just using RadioButton, not RadioButtonList...
Re: Radio Buttons not grouping correctly?
then you should use RadioButtonList
Re: Radio Buttons not grouping correctly?
Blake,
If you are creating the RadioButton's dynamically, how can you be setting the GroupName property in the HTML markup?
Can you show the code that you are using, both the ASPX markup, and the server side code?
Gary
Re: Radio Buttons not grouping correctly?
GAry,
I think that might have been my problem. I was dragging the rdo control into the markup and setting it in there. Anyway, I tried using the RDOList and that is working fine for me. In fact, it's probably better than the DataList control for what I'm using it for.
Thanks,
Re: [RESOLVED] Radio Buttons not grouping correctly?
sure you can do this also for radio button also but it will need extra code
Re: Radio Buttons not grouping correctly?
Quote:
Originally Posted by
blakemckenna
GAry,
I think that might have been my problem. I was dragging the rdo control into the markup and setting it in there. Anyway, I tried using the RDOList and that is working fine for me. In fact, it's probably better than the DataList control for what I'm using it for.
Thanks,
Agreed. I can't see how you could have been combining the two, as you were suggesting. Sounds like the RadioButtonList will be the best control for you.
Gary
Re: [RESOLVED] Radio Buttons not grouping correctly?
Yep,
It was Gary!
Thanks,