[thelist] [ASP.NET] Repeater Controls and Radio Buttons

Ken Schaefer ken at adOpenStatic.com
Wed Sep 10 21:19:35 CDT 2003


Hi Joshua,

A radio button list is a list-item control, so it gives you a "single set"
of radio buttons. It supports DataBinding, so you can bind your data to it.
It also has dataMember and dataTextField properties. I'm not entirely sure
what you're trying to accomplish, so I'm not sure that you can shoe-horn the
RadioButtonList into doing what you want. RadioButtonList inherits from
ListControl, not BaseDataList (ie listcontrols like Repeater, DataList,
DataGrid), so it has different set of properties and methods.

Cheers
Ken

----- Original Message ----- 
From: "Joshua Olson" <joshua at waetech.com>
To: <thelist at lists.evolt.org>
Sent: Thursday, September 11, 2003 11:46 AM
Subject: Re: [thelist] [ASP.NET] Repeater Controls and Radio Buttons


: ----- Original Message ----- 
: From: "Ken Schaefer" <ken at adOpenStatic.com>
: Sent: Wednesday, September 10, 2003 9:27 PM
:
:
: > Quick question. Do you have to use a repeater? Can you use a
: RadioButtonList
: > instead?
:
: No, I suppose I'm not locked into a repeater.  Basically I have an
arraylist
: populated with structures that I'm binding to the repeater.  If I can do
the
: same thing with a RadioButtonList then I suppose I could go that way too.
:
: Are you saying that the Repeater will not work or that the RadioButtonList
: is the proper tool to use in this case?
:
: Would you mind keying in a quick example?
:
: Thanks.



More information about the thelist mailing list