views:

18

answers:

2

Hi,

I am trying to implement multiple choice questions within my web application. I have datalist within a datalist. First datalist contains questions, second datalist contains choice, only one choice should be selectable at a time. I am using radio button. Even though I have set RadioButton.GroupName property, I can't make them selectable one at a time.

Please help.

A: 

Use CheckBox instead of RadioButton

abatishchev
Yes this is asp.net, here is how my source code looks like,
Ashar Syed
I can not use check boxes, radio button are the requirement.
Ashar Syed
@Ashar: Set different `RadioButton.GroupName` for each radio button
abatishchev
+1  A: 

Use a RadioButtonList, only one RadioButton of a RadioButtonList can be selected. Use the RadioButtonList instead of the second DataList.

Willem