I'm using radio buttons in a repeater control. I don't think I can use a radiobutton list. I'm displaying one or two images in a table. The table has three image cells, but only one or two of them can display an image, never all three. I only want the radio buttons to be displayed if there are two images, and only in the two cells that contain the images. if this can be duplicated with a radiobutton list, I'm all ears.
I have all this working by using an array list to populate the repeater. The aray list includes a visible property that gets passed to the radio buttons. I've managed to Google a solution to the radio group problem. I though I had my issues resolved and was ready to move on to the rest of the coding but then I noticed another problem.
None of the radio buttons are initially checked. If I run the page, check a radio button, click on the link button, the fact that I check one of the radio buttons doesn't register in the Repeater1_ItemCommand. All the radio buttons show checked = false. I don't want anything checked initially, but I did set one as checked = true to start to see what happens. In the Repeater1_ItemCommand event, the radio buttons maintain their initial values, no matter what I do when the page runs.
View Complete Post