Your problem is your indexor.
for (int index = 0;
index < radiobuttonlist1.items.count;
index++)
{
if (RadioButtonList1.Items[index].Selected )
{
return true;
}
}
return false;
In your code you are always looking at index 0 in your loop!!!
I trust also that you want to return true when at least 1 of your buttons is clicked in each list.
A better and cleaner way of implementing your code is as follows:
public bool IsRadioButtonSelected( RadioButtonList list )
{
for ( int index = 0; index < list.count; index++)
{
if ( list.Items[index].Selected )
return true;
}
return false;
}
And in your use of this you would say:
if ( IsRadioButtonSelected(radioList1) && IsRadioButtonSelected(radioList2)...