Automatically generated radio button groups

L

Leszek

Hello,

I am wondering how to create a reusable control (probably a custom control)
to generate a set of radio button groups dynamically from a single XML file.

An example:

XML file:

<poll>
<question text="QUESTION1">
<a>xxx</a>
<b>yyy</b>
<c>zzz</c>
</question>
<question text="QUESTION2">
<a>sss</a>
<b>www</b>
<c>eee</c>
</question>
</poll>

I would like to generate the following radio button groups:

QUESTION1
(*) xxx
(*) yyy
(*) zzz
QUESTION2
(*) sss
(*) www
(*) eee

It would also be great to treat these option groups as one entity, so when a
user selects 'yyy' and then 'sss', 'yyy' would be unselected.

Is there any code or samples showing how to accomplish this task?

Thanks,
Leszek Taratuta
 

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,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top