Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a repeater control which contains a one label and four radio buttons,

I have a button bottom of the repeater,

when click on button then I need to all selected radio button id or value

how can I do this?

Very very Thanks.
Posted
Comments
Maciej Los 7-Apr-13 5:22am    
Do you mean DataRepeater (MS VisualBasic.PowerPacks)?

1 solution

try this code..
C#
string rdValues="";
foreach (RepeaterItem ri in RepDetails.Items)
        {
           RadioButton rd = (RadioButton)ri.FindControl("rdioId1");

            if (rd.Checked == true)
        {
            rdValues=rdValues+rd.Text;
        }
    }

also check following link Answer 1
http://stackoverflow.com/questions/10880297/find-control-in-asprepeater-on-button-click-event[^]
 
Share this answer
 
Comments
ExpertITM 7-Apr-13 5:30am    
Thank you..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900