Radio Buttons in a Reapeater Control...

C

Chris Tremblay

I want to use a Repeater control to display a bunch of records. Got that
part figured out. Now I want each record to have next to it a radio button
so I can select exactly one record and then click "next". I'm using
<asp:RadioButton> to create the radio button, but when the page is rendered
each button has a different name and therefore the browser doesn't group
them together as it should and I can select as many as I'd like. I've
already tried setting GroupName. I vaguely remember that this was an issue
with ASP.NET. Have they fixed this or is there any way to work around this
such as by using a placeholder control?
 
T

Thomas Dodds

I have used

<asp:radiobutton id="rad_a" runat="server" text="approve"
groupname="rad_group1"/>
<asp:radiobutton id="rad_r" runat="server" text="reject"
groupname="rad_group1"/>

in an asp:datalist itemtemplate and if I check the approve and then check
the reject it opperates just like it should
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top