Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RadioButtonList value in repeater

Thread Tools

RadioButtonList value in repeater

IFIA IFIA is offline
Junior Member
Join Date: Mar 2008
Posts: 2

I have a radiobuttonlist within a nested repeater, resulting in multiple radiobuttonlists.

On a button click how do I find out what those selected values of the radiobuttons were?

Code so far:

protected void Button1_Click(object sender, EventArgs e)
        foreach (RepeaterItem rtpItem in RepWorkArea.Items)
            Repeater rp = (Repeater)(rtpItem.FindControl("RepQuestions"));
            foreach (RepeaterItem rtpItem2 in rp.Items)
                RadioButtonList rbl = (RadioButtonList)rtpItem2.FindControl("rblAnswers");
                label22.Text += rbl.SelectedItem.Value;
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling Radiobuttonlist event inside Repeater Control Ravi ASP .Net 2 08-18-2006 06:56 AM
Repeater + RadioButtonList Guldo K ASP .Net Building Controls 1 12-06-2005 08:06 PM
setting selecteditem item on databound radiobuttonlist in a repeater Rod Snyder ASP .Net 1 02-17-2005 03:49 AM
RadioButtonList in Repeater Control...Ouch Darren ASP .Net 1 09-28-2004 06:10 PM
RadioButtonList in a repeater David Davis ASP .Net 0 10-21-2003 05:56 PM