you put a radio button in it like you normally would <asp:radiobutto n
id="choice" .. /> in the item template.
Then in the button's click, you can look through the repeater's Items
collection and do a findControl.. Here is some quasi pseudo (As it probably
won't work as-is)
for each item as RepeaterItem in myRepeater.Item s
dim rad as RadioButton = ctype(item.Find Control("choice "), RadioButton)
if rad.Selected = true then
'item is checked, do something, you can use item to figure out which
row it was..
end if
next
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"SouthSpawn " <so********@aol .com> wrote in message
news:c5******** *************** *******@localho st.talkaboutsof tware.com...
I know this is probably pretty trival.
I am trying to put a radio button inside
a repeater control. That will allow me to select each row one by one. Then
once the user clicks on the submit button. It determines which row has
been
selected.
Can anyone post me a code sample.
Thanks,
Mark