The other day I had to build a simple listing of data that required having a radio button on each line so as to enable a user to select and option. I planned to use a datalist control and to place a radio button control in the itemtemplate.
When I ran a quick test I immediately noticed a peculiar issue, all the radio buttons where selectable at the same time!
As usual, I googled the symptom and quickly found that there seems to be an issue with both ASP.net 1.1 and 2.0 where the radio button controls in the list become all selectable (more like checkboxes) while the whole idea behind a radio button is to have just one in the list selectable at a time.
After further reseach, I found that the reason why this is happening is simply because of the way the asp.net assigns the Control's ID at run-time. Basically this problem occurs because the Repeater/Datalist server control implements the INamingContainer interface, which requires that all controls that are nested within it must have a unique name when rendered in H ...