Andi Smith

Andi Smith

  • NA
  • 1
  • 0

Grouping Radio Buttons in Placeholders

Oct 29 2006 6:13 PM
Guys, I'm trying to create a web page (in c#) where there are multiple rows in a table and each row has it's own user control which I have created (as the row can be attributed to one of the display types in our database). The problem I'm having is I need each row to have a radio button so the user can select just one of the values, but as it is a User Control (created dynamically by a placeholder) it is being given a unique ID via client ID, so each and every radio button can be selected without unselecting the other rows. I've tried using GroupName, but this also obtains a unique ID for each user control. Has anyone got any ideas of how I can do this without resulting to complex Javascript? I'm not too concerned if the radio inputs are HTML or ASP controls, but they should contain the runat="server" property so I can reference and hide some of them. Is there a way to do this? Or is there a way to stop the Client ID outputting for GroupNames, which I believe would fix the problem? Any help would be greatly appreciated. Thanks very much! Andi